Package orm2 :: Module exceptions
[hide private]
[frames] | no frames]

Module exceptions

source code

orm2 comes with a whole bunch of exception classes, collected in this module.

Classes [hide private]
  ORMException
Base class for all of orm's exceptions
  InternalError
Something inside orm has gone wrong.
  IllegalConnectionString
This exception indicates a syntax error in a connection string
  NoSuchAttributeOrColumn
Er...
  NoPrimaryKey
This error is raised if a class does not have a primary key (__primary_key__ == None) but some function requires a primary key.
  ObjectMustBeInserted
To perform the requested operation, the object must have been stored in the database.
  ObjectAlreadyInserted
Relationships may require dbobjects not to have been inserted into the database prior to handling them.
  DBObjContainsNoData
This exception is raised if a dbobj wants to be inserted that has none of its attributes set.
  PrimaryKeyNotKnown
This exception is raised when the select after insert mechanism is invoked on an object of which the primary key is not known and cannot be determined through the backend.
  BackendError
The backend had something to complain
  DatatypeMustBeUsedInClassDefinition
Most datatypes need to be part of the class definition and cannot be added later.
  NoDbPropertyByThatName
Raised by dbobject.__dbproperty__.
  SimplePrimaryKeyNeeded
Raised if some function expects a single column primary key but a multi column primary key is provided.
  KeyNotSet
Raised if a key is not set or not set completely (that is, all of its columns)
  IllegalForeignKey
Raised if a foreign key attribute or set of attributes doesn't match the attributes in the other dbclass.
  ValidatorException
Parentclass for all those exceptions raised by validators.
  NotNullError
Raised by the not_null_validator
  NotEmptyError
Raised by the not_empty_validator
  RangeValidatorError
Raised by range_check_validator
  LengthValidatorException
Raised by length_validator
  ReValidatorException
  DateValidatorException
  PasswordsDontMatch