Class IdentityConstraintException

Description

This exception is used to report identity constraint violations.

This exception is used to report identity constraint violations. Assigning an item identifier, a subject identifier, or a subject locator to different objects causes an IdentityConstraintException to be thrown.

Located in /core/IdentityConstraintException.class.php (line 26)

RuntimeException
   |
   --PHPTMAPIRuntimeException
      |
      --ModelConstraintException
         |
         --IdentityConstraintException
Variable Summary
Method Summary
void __construct (Construct $reporter, Construct $existing, string $locator, string $msg)
string getLocator ()
Variables
Construct $_existing (line 34)

The Construct which already has the identity represented by the locator in getLocator().

The Construct which already has the identity represented by the locator in getLocator().

  • access: private
string $_locator (line 41)

The locator representing the identity that caused the exception.

The locator representing the identity that caused the exception.

  • access: private

Inherited Variables

Inherited from ModelConstraintException

ModelConstraintException::$_reporter

Inherited from RuntimeException (Internal Class)

$code
$file
$line
$message
Methods
Constructor __construct (line 54)

Constructor.

Constructor.

  • access: public
void __construct (Construct $reporter, Construct $existing, string $locator, string $msg)
  • Construct $reporter: The construct to which the identity should have been assigned to. In case a factory method has thrown this exception it is the construct which provides the factory method.
  • Construct $existing: The construct which has the same identity.
  • string $locator: The locator representing the identity.
  • string $msg: The error message.

Redefinition of:
ModelConstraintException::__construct()
Constructor.
getExisting (line 67)

Returns the Construct which already has the identity represented by the locator in getLocator().

Returns the Construct which already has the identity represented by the locator in getLocator().

  • return: The existing construct.
  • access: public
Construct getExisting ()
getLocator (line 77)

Returns the locator representing the identity that caused the exception.

Returns the locator representing the identity that caused the exception.

  • return: The locator representing the identity that caused the exception.
  • access: public
string getLocator ()

Inherited Methods

Inherited From ModelConstraintException

ModelConstraintException::__construct()
ModelConstraintException::getReporter()

Inherited From RuntimeException (Internal Class)

constructor __construct ( [$message = ], [$code = ], [$previous = ] )
getCode ( )
getFile ( )
getLine ( )
getMessage ( )
getPrevious ( )
getTrace ( )
getTraceAsString ( )
__clone ( )
__toString ( )

Documentation generated on Mon, 19 Sep 2011 21:01:26 +0200 by phpDocumentor 1.4.0