Let us walk on the 3-isogeny graph
Loading...
Searching...
No Matches
ConfigurationFileCouldNotBeLoaded Class Reference
Inheritance diagram for ConfigurationFileCouldNotBeLoaded:
Collaboration diagram for ConfigurationFileCouldNotBeLoaded:

Public Member Functions

None __init__ (self, str reason="could not be loaded", Optional[str] fname=None, Optional[configparser.Error] error=None)
 
str __str__ (self)
 

Data Fields

 reason
 
 fname
 
 error
 

Detailed Description

When there are errors while loading a configuration file

Definition at line 633 of file exceptions.py.

Constructor & Destructor Documentation

◆ __init__()

None __init__ (   self,
str   reason = "could not be loaded",
Optional[str]   fname = None,
Optional[configparser.Error]   error = None 
)

Definition at line 636 of file exceptions.py.

641 ) -> None:
642 super().__init__(error)
643 self.reason = reason
644 self.fname = fname
645 self.error = error
646
for i

Referenced by Protocol.__init_subclass__().

Here is the caller graph for this function:

Member Function Documentation

◆ __str__()

str __str__ (   self)

Definition at line 647 of file exceptions.py.

647 def __str__(self) -> str:
648 if self.fname is not None:
649 message_part = f" in {self.fname}."
650 else:
651 assert self.error is not None
652 message_part = f".\n{self.error}\n"
653 return f"Configuration file {self.reason}{message_part}"
654
655

Field Documentation

◆ error

error

Definition at line 645 of file exceptions.py.

◆ fname

fname

Definition at line 644 of file exceptions.py.

◆ reason

reason

Definition at line 643 of file exceptions.py.

Referenced by Response.raise_for_status().


The documentation for this class was generated from the following file: