Class PelWrongComponentCountException

Description

Exception indicating that an unexpected number of components was found.

Some tags have strict limits as to the allowed number of components, and this exception is thrown if the data violates such a constraint. The documentation for each tag in PelTag explains the expected number of components.

Located in /src/PelEntry.php (line 147)

Exception
   |
   --PelException
      |
      --PelEntryException
         |
         --PelWrongComponentCountException
Method Summary
PelWrongComponentCountException __construct (int $type, PelTag $tag, int $found, int $expected)
Variables

Inherited Variables

Inherited from PelEntryException

PelEntryException::$tag
PelEntryException::$type

Inherited from Exception (Internal Class)

$code
$file
$line
$message
$previous
$string
$trace
Methods
Constructor __construct (line 161)

Construct a new exception indicating a wrong number of components.

PelWrongComponentCountException __construct (int $type, PelTag $tag, int $found, int $expected)
  • int $type: the type of IFD.
  • PelTag $tag: the tag for which the violation was found.
  • int $found: the number of components found.
  • int $expected: the expected number of components.

Redefinition of:
PelException::__construct()
Construct a new PEL exception.

Inherited Methods

Inherited From PelEntryException

PelEntryException::getIfdType()
PelEntryException::getTag()

Inherited From PelException

PelException::__construct()

Inherited From Exception (Internal Class)

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

Documentation generated on Thu, 05 May 2011 07:19:00 +0200 by phpDocumentor 1.4.3