Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Exception class for Zend_Pdf.
If you expect a certain type of exception to be caught and handled by the caller, create a constant for it here and include it in the object being thrown. Example:
throw new Zend_Pdf_Exception('foo() is not yet implemented', Zend_Pdf_Exception::NOT_IMPLEMENTED);
This allows the caller to determine the specific type of exception that was thrown without resorting to parsing the descriptive text.
IMPORTANT: Do not rely on numeric values of the constants! They are grouped sequentially below for organizational purposes only. The numbers may come to mean something in the future, but they are subject to renumbering at any time. ALWAYS use the symbolic constant names, which are guaranteed never to change, in logical checks! You have been warned.
NOT_IMPLEMENTED
= '0x0001'
The feature or option is planned but has not yet been implemented. It should be available in a future revision of the framework.
DEPRECATED
= '0x0002'
The feature or option has been deprecated and will be removed in a future revision of the framework. The descriptive text accompanying this exception should explain how to use the replacement features or options.
BAD_METHOD_SIGNATURE
= '0x0007'
The method that has multiple signatures could not understand the number and/or types of parameters.
CANT_GET_FILE_POSITION
= '0x0106'
An error was encountered while attempting to obtain the current file position.
CANT_SET_FILE_POSITION
= '0x0107'
An error was encountered while attempting to set a new file position.
MOVE_BEFORE_START_OF_FILE
= '0x0108'
An attempt was made to move the current file position before the start of the file.
MOVE_BEYOND_END_OF_FILE
= '0x0109'
An attempt was made to move the current file position beyond the end of the file.
BAD_DATA_SOURCE
= '0x0201'
The file parser data source object was invalid or improperly initialized.
PARSED_OUT_OF_ORDER
= '0x0206'
This file type must be parsed in a specific order and a parsing method was called out-of-turn.
BAD_TABLE_COUNT
= '0x0302'
The number of tables contained in the font is outside the expected range.
DONT_UNDERSTAND_TABLE_VERSION
= '0x0303'
The parser does not understand this version of this table in the font.
CMAP_NOT_LANGUAGE_INDEPENDENT
= '0x0406'
This character map table is language-dependent. Character maps must be language-independent.
CMAP_FINAL_OFFSET_NOT_LENGTH
= '0x0407'
The final byte offset when reading the character map table data does not match the reported length of the table.
CMAP_WRONG_ENTRY_COUNT
= '0x0408'
The character map subtable entry count does not match the expected value.
FONT_CANT_BE_EMBEDDED
= '0x0502'
This font program has copyright bits set which prevent it from being embedded in the PDF file. You must specify the no-embed option to use this font.
BAD_FONT_NAME
= '0x0601'
The font name did not match any previously instantiated font and is not one of the standard 14 PDF fonts.
CANT_DETERMINE_FONT_TYPE
= '0x0602'
The factory method could not determine the type of the font file.

__call(
string $method, array $args
)
:
mixed
Overloading
Inherited from: \Zend_Exception::__call()For PHP < 5.3.0, provides access to the getPrevious() method.
Name | Type | Description |
---|---|---|
$method | string | |
$args | array |
Type | Description |
---|---|
mixed |

__construct(
string $msg, int $code
=
0, \Exception $previous
=
null
)
:
void
Construct the exception
Inherited from: \Zend_Exception::__construct()Name | Type | Description |
---|---|---|
$msg | string | |
$code | int | |
$previous | \Exception |

__toString(
)
:
string
String representation of the exception
Inherited from: \Zend_Exception::__toString()Type | Description |
---|---|
string |

_getPrevious(
)
:
\Exception|null
Returns previous Exception
Inherited from: \Zend_Exception::_getPrevious()Type | Description |
---|---|
\Exceptionnull |