Path

ez components / documentation / api reference / 2009.2.1 / persistentobject


eZ Components 2009.2.1

PersistentObject: ezcPersistentIdentityRelatedObjectsInconsistentException

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

Class: ezcPersistentIdentityRelatedObjectsInconsistentException

Exception thrown if a set of related objects is inconsistent. [source]
ezcPersistentIdentityMap::setRelatedObjects() and ezcPersistentIdentityMap::setRelatedObjectSet() will throw this exception, if any of the objects in the set of related objects is not of the given related class.

Parents

Exception
   |
   --ezcBaseException
      |
      --ezcPersistentObjectException
         |
         --ezcPersistentIdentityRelatedObjectsInconsistentException

Inherited Member Variables

From ezcBaseException:
public  ezcBaseException::$originalMessage
From Exception (Internal Class):
protected  $code
protected  $file
protected  $line
protected  $message
private  $string
private  $trace

Method Summary

public ezcPersistentIdentityRelatedObjectsInconsistentException __construct( $class, $id, $expectedClass, $actualClass )
Creates a new ezcPersistentIdentityRelatedObjectsInconsistentException.

Inherited Methods

From ezcPersistentObjectException :
public void ezcPersistentObjectException::__construct()
Constructs a new ezcPersistentObjectException with error message $message and reason code $reason.
From ezcBaseException :
public ezcBaseException ezcBaseException::__construct()
Constructs a new ezcBaseException with $message
From Exception (Internal Class) :
public Exception constructor __construct ( $message, $code )
public void getCode ( )
public void getFile ( )
public void getLine ( )
public void getMessage ( )
public void getTrace ( )
public void getTraceAsString ( )
public void __clone ( )
public void __toString ( )

Methods

__construct

ezcPersistentIdentityRelatedObjectsInconsistentException __construct( string $class, mixed $id, string $expectedClass, string $actualClass )
Creates a new ezcPersistentIdentityRelatedObjectsInconsistentException.
Creates a new ezcPersistentIdentityRelatedObjectsInconsistentException. The source object is of $class with $id, the related objects are expected to be of $expectedClass, but the $actualClass was found.

Parameters

Name Type Description
$class string  
$id mixed  
$expectedClass string  
$actualClass string  

Redefinition of

Method Description
ezcPersistentObjectException::__construct() Constructs a new ezcPersistentObjectException with error message $message and reason code $reason.

Last updated: Tue, 23 Mar 2010