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
Method Summary
void __construct (Construct $reporter, Construct $existing, string $locator, string $msg)
string getLocator ()
Variables

Inherited Variables

Inherited from RuntimeException (Internal Class)

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

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 detail message.

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

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

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

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

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 Sat, 15 Jan 2011 20:02:25 +0100 by phpDocumentor 1.4.1