Package enomalism2 :: Module exceptions
[hide private]

Module exceptions

This module defines the core exceptions that are raised in Enomalism.


Requires:

Status: Stable

Classes [hide private]
  E2ExceptionLog
Abstraction for an exception that gets stored in the database.
  E2BaseException
The base exception that is inherited by all other Enomalism exceptions.
  E2ResourceLocked
This exception is raised when an attempt is made to access some resource while it is locked.
  E2UndefinedError
This exception is raised when an error that cannot be identified takes place in Enomalism.
  E2MalformedXML
This exception is raised when Enomalism cannot read XML because it is malformed.
  E2ProvisioningError
This exception is raised when something goes wrong while Enomalism is provisioning a machine.
  E2PermissionError
This exception is raised when an attempt is made to access a resource without the required permissions.
  E2RESTRecursionError
This exception is raised when a rest call is being sent to the same machine as the callee.
  E2CredentialsError
This exception is raised when an attempt is made to access a resource without the required credentials.
  E2HypervisorNotFound
This exception is raised when Enomalism cannot find a particular hypervisor.
  E2MachineNotFound
This exception is raised when Enomalism cannot find a particular machine.
  E2ClusterNotFound
This exception is raised when Enomalism cannot find a particular cluster.
  E2PackageNotFound
This exception is raised when Enomalism cannot find a particular package.
  E2ExceptionNotFound
This exception is raised when Enomalism cannot find a particular exception.
  E2LockerNotFound
This exception is raised when Enomalism cannot find a particular locker.
  E2TransactionNotFound
This exception is raised when Enomalism cannot find a particular transaction.
  E2UserNotFound
This exception is raised when Enomalism cannot find a particular user.
  E2GroupNotFound
This exception is raised when Enomalism cannot find a particular group.
  E2DefinitionNotFound
This exception is raised when Enomalism cannot find a package or machine definition.
  E2DependencyFailure
This exception is raised when an Enomalism dependency cannot be satisfied.
  E2InvalidParameter
This exception is typically raised when an incorrect parameter type is passed to a method or function.
  E2MissingParameter
This exception is raised when a required parameter is not passed to a method or function.
Functions [hide private]
String/None
get_traceback()
Return the traceback of the exception that is currently being handled by the system.
Variables [hide private]
turbogears.database.PackageHub hub = PackageHub('enomalism2')
The Enomalism database connection hub.
turbogears.database.__connection__ __connection__ = PackageHub('enomalism2')
The actual database connection.
Function Details [hide private]

get_traceback()

 

Return the traceback of the exception that is currently being handled by the system. First, we create an "in-memory" file object and assign the traceback string to it by calling the print_exc function. We then close the file and return the string. If no exception is currently being handled, None is returned.

Example usage:

>>> from enomalism2 import exceptions
>>> exceptions.get_traceback()
Returns: String/None
The current traceback string.
Raises:
  • None - No exceptions are raised by this function.

Status: Stable