getState() is invalid. * * @package PersistentObject * @version 1.7alpha1 */ class ezcPersistentInvalidObjectStateException extends ezcPersistentObjectException { /** * Creates a new exception. * * Creates a new ezcPersistentInvalidObjectStateException for the given * $object with the given $reason. * * @param object $object * @param string $reason */ public function __construct( $object, $reason = null ) { parent::__construct( 'The state returned by an object of class ' . get_class( $object ) . ' was invalid.' . ( $reason !== null ? " (Reason: $reason)" : '' ) ); } } ?>