Documentation versions

Module reahl.component.exceptions

Exceptions used throughout several Reahl components.


class reahl.component.exceptions.DomainException(commit=False)

Any exception indicating an application-specific error condition that should be communicated to a user.

Parameters:commit – Set to True to indicate that the current database transaction should be committed. By default transactions are rolled back when a DomainException is raised.


class reahl.component.exceptions.AccessRestricted

Raised to prevent the current user to perform some function which is not allowed.


class reahl.component.exceptions.ProgrammerError

Raised to indicate an error in the program.


class reahl.component.exceptions.IncorrectArgumentError(explanation, cause)

Raised to indicate an attempt to pass an incorrect argument to a Python callable.

Documentation versions