Exceptions¶
Exception hierarchy¶
Exception classes¶
- exception pglift.exceptions.Error(message)¶
Base class for operational error.
- Parameters:
message (str)
- Return type:
None
- exception pglift.exceptions.SettingsError(message)¶
An error about settings.
- Parameters:
message (str)
- Return type:
None
- exception pglift.exceptions.NotFound(name, hint=None)¶
Base class for errors when an object with name is not found.
- exception pglift.exceptions.InstanceNotFound(name, hint=None)¶
PostgreSQL instance not found or mis-configured.
- exception pglift.exceptions.RoleNotFound(name, hint=None)¶
PostgreSQL role not found.
- exception pglift.exceptions.DatabaseNotFound(name, hint=None)¶
PostgreSQL database not found.
- exception pglift.exceptions.InvalidVersion(message)¶
Invalid PostgreSQL version.
- Parameters:
message (str)
- Return type:
None
- exception pglift.exceptions.InstanceStateError(message)¶
Unexpected instance state.
- Parameters:
message (str)
- Return type:
None
- exception pglift.exceptions.CommandError(returncode, cmd, stdout=None, stderr=None)¶
Execution of a command, in a subprocess, failed.
- exception pglift.exceptions.SystemError(message)¶
Error (unexpected state) on target system.
- Parameters:
message (str)
- Return type:
None