rads.exceptions¶
This section documents all exceptions that should be emitted from functions in the toplevel rads module.
Note
If a toplevel function or method raises an exception that is not documented here please submit an issue.
-
class
rads.exceptions.RADSError[source] Base class for all public PyRADS exceptions.
-
class
rads.exceptions.InvalidDataroot[source] Raised when the RADS dataroot is missing or invalid.
-
class
rads.exceptions.ConfigError(message: str, line: Optional[int] = None, file: Optional[str] = None, *, original: Optional[Exception] = None)[source] Exception raised when there is a problem loading the configuration file.
It is usually raised after another more specific exception has been caught.
- Parameters
message – Error message.
line – Line that cause the exception, if known.
file – File that caused the exception, if known.
original – Optionally the original exception.
-
message Error message.
-
line= None Line that cause the exception, if known (None otherwise).
-
file= None File that caused the exception, if known (None otherwise).
-
original_exception= None Optionally the original exception (None otherwise).