Path

ez components / documentation / api reference / latest / persistentobject


eZ Components latest

PersistentObject: ezcPersistentIdentityAlreadyExistsException

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

Class: ezcPersistentIdentityAlreadyExistsException

Exception thrown if an identity is duplicated. [source]
In case ezcPersistentSessionIdentityDecorator::loadIntoObject() is used to load an already recorded identity into a second object or if ezcPersistentSessionIdentityDecorator::save() is used to save a second object with an already recorded identity. The latter case is only possible, if ezcPersistentManualGenerator is used to create the objects identifier.

Parents

Exception
   |
   --ezcBaseException
      |
      --ezcPersistentObjectException
         |
         --ezcPersistentIdentityAlreadyExistsException

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 ezcPersistentIdentityAlreadyExistsException __construct( $class, $id )
Creates a new ezcPersistentIdentityAlreadyExistsException.

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

ezcPersistentIdentityAlreadyExistsException __construct( string $class, mixed $id )
Creates a new ezcPersistentIdentityAlreadyExistsException.
Creates a new ezcPersistentIdentityAlreadyExistsException for the object identified by $class and $id.

Parameters

Name Type Description
$class string  
$id mixed  

Redefinition of

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

Last updated: Mon, 21 Dec 2009