chula.error – Custom exceptions

Custom chula exceptions

exception chula.error.ChulaException(msg=None, append=None)

Chula exception class which adds additional functionality to aid in efficiently raising custom exceptions.

message

Getter for a message property, to avoid using an attribute named “message” which will raise deprecation errors in Python-2.6.

msg()

When the msg method is not overloaded, return a generic message

exception chula.error.ControllerClassNotFoundError(_pkg, append=None)

Exception indicating the requested controller class not found.

exception chula.error.ControllerImportError(_pkg, append=None)

Exception while trying to import the controller.

exception chula.error.ControllerMethodNotFoundError(_pkg, append=None)

Exception indicating the requested controller method not found.

exception chula.error.ControllerMethodReturnError(msg=None, append=None)

Exception indicating that a controller method is returning None, which is probably not on purpose. It’s true that we do cast all output as a string, thus None is technically valid, it’s most likely that the controller method simply forgot to return. This will save time by pointing this out. If you really need to return None, then return: ‘None’

exception chula.error.ControllerModuleNotFoundError(_pkg, append=None)

Exception indicating the requested module method not found.

exception chula.error.ControllerRedirectionError(msg=None, append=None)

Exception indicating that the controller was unable to perform the requested redirect.

exception chula.error.InvalidAttributeError(key, append=None)

Exception indicating an invalid attribute was used.

exception chula.error.InvalidCacheKeyError(key, append=None)

Exception indicating an invalid key was used against a cache source.

exception chula.error.InvalidCollectionKeyError(key, append=None)

Exception indicating an invalid key was used against a restricted collection class.

exception chula.error.MalformedConnectionStringError(msg=None, append=None)

Exception indicating that the database connection string used is invalid.

exception chula.error.MalformedPasswordError(msg=None, append=None)

Exception indicating that the password used does not meet minimum requirements (aka: isn’t strong enough).

exception chula.error.MissingDependencyError(_pkg, append=None)

Exception indicating a required dependency of chula is either missing or of an incompatible version.

exception chula.error.RestrictecCollectionKeyRemovalError(key, append=None)

It is illegal to remove a key from a RestrictedCollection object.

exception chula.error.RestrictecCollectionMissingDefaultAttrError(key, append=None)

Exception indicating that a restricted attribute was not given a default value.

exception chula.error.SessionUnableToPersistError(msg=None, append=None)

Chula is unable to persist either to PostgreSQL or Memached.

exception chula.error.TypeConversionError(_value, _type, append=None)

Exception indicating that the requested data type conversion was not possible.

exception chula.error.UnsupportedDatabaseEngineError(engine, append=None)

Exception indicating a requst for an unsupported database engine

exception chula.error.UnsupportedMapperError(_pkg, append=None)

Exception indicating an invalid mapper configuration

exception chula.error.UnsupportedUsageError(msg=None, append=None)

Exception indicating the chula api is being misused.

exception chula.error.WebserviceUnknownTransportError(key, append=None)

Exception indicating that the specified webservice transport is either unknown or unsupported.

Previous topic

chula.ecalendar – Calendar helper

Next topic

chula.guid – Globally unique identifier

This Page