rads.exceptions module

Public exceptions.

exception rads.exceptions.RADSError[source]

Bases: Exception

Base class for all public PyRADS exceptions.

exception rads.exceptions.ConfigError(message: str, line: Optional[int] = None, file: Optional[str] = None, *, original: Optional[Exception] = None)[source]

Bases: rads.exceptions.RADSError

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).

exception rads.exceptions.InvalidDataroot[source]

Bases: rads.exceptions.RADSError

Raised when the RADS dataroot is missing or invalid.