Zeta Components - high quality PHP components

Zeta Components Manual :: Docs For Class ezcPersistentIdentityRelatedObjectsInconsistentException

PersistentObject::ezcPersistentIdentityRelatedObjectsInconsistentException

Class ezcPersistentIdentityRelatedObjectsInconsistentException

Exception thrown if a set of related objects is inconsistent.

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.

Source for this file: /PersistentObject/src/exceptions/identity_related_objects_inconsistent.php

Exception
   |
   --ezcBaseException
      |
      --ezcPersistentObjectException
         |
         --ezcPersistentIdentityRelatedObjectsInconsistentException
Version:   //autogen//

Inherited Member Variables

From ezcBaseException
public ezcBaseException::$originalMessage
From Exception (Internal Class)
protected $code
protected $file
protected $line
protected $message
private $previous
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 = ], [$previous = ] )
public void getCode ( )
public void getFile ( )
public void getLine ( )
public void getMessage ( )
public void getPrevious ( )
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.
Documentation generated by phpDocumentor 1.4.3