Path

ez components / documentation / api reference / 2007.1.1 / persistentobject


eZ Components 2007.1.1

PersistentObject: ezcPersistentObjectException

[ Tutorial ] [ Class tree ] [ Element index ] [ ChangeLog ] [ Credits ]

Class: ezcPersistentObjectException

General exception class for the PersistentObject package. [source]
All exceptions in the persistent object package are derived from this exception.

Parents

Exception
   |
   --ezcBaseException
      |
      --ezcPersistentObjectException

Descendents

Child Class Description
ezcPersistentObjectNotPersistentException Exception thrown when a method that requires a persistent object is provided an object not yet persistent.
ezcPersistentDefinitionNotFoundException General exception class for the PersistentObject package.
ezcPersistentRelationNotFoundException Exception thrown, if a desired relation between 2 classes was not found.
ezcPersistentSessionNotFoundException This exceptions is used when a database handler could not be found.
ezcPersistentObjectAlreadyPersistentException Exception thrown when a method that requires a non-persistent object is provided an object that is already persistent.
ezcPersistentRelatedObjectNotFoundException Exception thrown, if the given relation class could not be found.
ezcPersistentRelationInvalidException Exception thrown, if the class of a relation definition was invalid.
ezcPersistentRelationOperationNotSupportedException Exception thrown, if the given relation class ćould not be found.
ezcPersistentQueryException Exception thrown when a query failed internally in Persistent Object.
ezcPersistentDefinitionMissingIdPropertyException Exception thrown, if an object of ezcPersistentObjectDefinition has no idProperty attribute.
ezcPersistentIdentifierGenerationException Exception thrown when generating an ID for a persistent object failed.

Inherited Member Variables

From ezcBaseException:
public  ezcBaseException::$originalMessage

Method Summary

public void __construct( $message, [$reason = null] )
Constructs a new ezcPersistentObjectException with error message $message and reason code $reason.

Inherited Methods

From ezcBaseException :
public ezcBaseException ezcBaseException::__construct()
Constructs a new ezcBaseException with $message

Methods

__construct

void __construct( string $message, [string $reason = null] )
Constructs a new ezcPersistentObjectException with error message $message and reason code $reason.
Reason can be omitted if not applicable.

Parameters

Name Type Description
$message string  
$reason string  

Redefinition of

Method Description
ezcBaseException::__construct() Constructs a new ezcBaseException with $message

Redefined in descendants as

Method Description
ezcPersistentObjectNotPersistentException::__construct() Constructs a new ezcPersistentObjectNotPersistentException for the class $class.
ezcPersistentDefinitionNotFoundException::__construct() Constructs a new ezcPersistentDefinitionNotFoundException for the class $class with the additional error information $message.
ezcPersistentRelationNotFoundException::__construct() Constructs a new ezcPersistentRelationNotFoundException for the class $class which does not have a relation for $relatedClass.
ezcPersistentSessionNotFoundException::__construct() Constructs a new exception.
ezcPersistentObjectAlreadyPersistentException::__construct() Constructs a new ezcPersistentObjectAlreadyPersistentException for the class $class.
ezcPersistentRelatedObjectNotFoundException::__construct() Constructs a new ezcPersistentRelatedObjectNotFoundException for the object $object which does not have a relation for $relatedClass.
ezcPersistentRelationInvalidException::__construct() Constructs a new ezcPersistentRelationInvalidException for the given relation class $class.
ezcPersistentRelationOperationNotSupportedException::__construct() Constructs a new ezcPersistentRelationOperationNotSupportedException for the $class which does not support the $operation in respect to $relatedClass. Optionally a $reason can be given.
ezcPersistentQueryException::__construct() Constructs a new ezcPersistentQueryException with additional information in $msg.
ezcPersistentDefinitionMissingIdPropertyException::__construct() Constructs a new ezcPersistentDefinitionMissingIdPropertyException for the class $class.
ezcPersistentIdentifierGenerationException::__construct() Constructs a new ezcPersistentIdentifierGenerationException for the class $class with the optional message $msg.

Last updated: Wed, 28 Nov 2007