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.
package |
Zend_Pdf |
subpackage |
Core |
copyright |
Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
license |
New BSD License |
inherited_from |
\Zend_Exception |
Methods
Overloading
__call(string $method, array $args) : mixed
Inherited
For PHP < 5.3.0, provides access to the getPrevious() method.
Parameters
$method
string
$args
array
Returns
mixed
Construct the exception
__construct(string $msg = ''
, integer $code = 0
, \Exception $previous = null
) : void
Inherited
Parameters
$msg
string
$code
integer
$previous
\Exception
String representation of the exception
__toString() : string
Inherited
Returns previous Exception
_getPrevious() : \Exception | null
Inherited
Properties
$_previous
$_previous : null | \Exception
Constants
The specified attribute value for the text object cannot be used.
BAD_ATTRIBUTE_VALUE = 1793
The file parser data source object was invalid or improperly initialized.
BAD_DATA_SOURCE = 513
The file path was unusable or invalid.
BAD_FILE_PATH = 257
An invalid fixed-point number size was specified.
BAD_FIXED_POINT_SIZE = 516
The font name did not match any previously instantiated font and is not
one of the standard 14 PDF fonts.
BAD_FONT_NAME = 1537
The magic number in the font file is incorrect.
BAD_MAGIC_NUMBER = 772
The method that has multiple signatures could not understand the
number and/or types of parameters.
BAD_METHOD_SIGNATURE = 7
A parameter was of the wrong data type.
BAD_PARAMETER_TYPE = 4
A parameter contained an unusable value.
BAD_PARAMETER_VALUE = 5
The number of tables contained in the font is outside the expected range.
BAD_TABLE_COUNT = 770
The factory method could not determine the type of the font file.
CANT_DETERMINE_FONT_TYPE = 1538
CANT_DETERMINE_IMAGE_TYPE
CANT_DETERMINE_IMAGE_TYPE = 2049
Could not locate a usable character map for this font.
CANT_FIND_GOOD_CMAP = 773
An error was encountered while attempting to obtain the current file
position.
CANT_GET_FILE_POSITION = 262
An error was encountered while attempting to obtain the file size.
CANT_GET_FILE_SIZE = 266
An error was encountered while attempting to open the file.
CANT_OPEN_FILE = 261
The string cannot be read.
CANT_READ_STRING = 517
An error was encountered while attempting to set a new file position.
CANT_SET_FILE_POSITION = 263
The final byte offset when reading the character map table data does not
match the reported length of the table.
CMAP_FINAL_OFFSET_NOT_LENGTH = 1031
This character map table is language-dependent. Character maps must be
language-independent.
CMAP_NOT_LANGUAGE_INDEPENDENT = 1030
The character map table data is too small.
CMAP_TABLE_DATA_TOO_SMALL = 1027
The character map type is currently unsupported.
CMAP_TYPE_UNSUPPORTED = 1025
The type of the character map is not understood.
CMAP_UNKNOWN_TYPE = 1026
The character map subtable entry count does not match the expected value.
CMAP_WRONG_ENTRY_COUNT = 1032
The character map table data contains in incorrect length.
CMAP_WRONG_TABLE_LENGTH = 1029
The character map table data is for a different type of table.
CMAP_WRONG_TABLE_TYPE = 1028
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.
DEPRECATED = 2
The parser does not understand this version of this table in the font.
DONT_UNDERSTAND_TABLE_VERSION = 771
An error was encountered while attempting to read data from the file.
ERROR_DURING_READ = 267
An error was encountered while attempting to write data to the file.
ERROR_DURING_WRITE = 268
The file resource has been closed unexpectedly.
FILE_NOT_OPEN = 260
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.
FONT_CANT_BE_EMBEDDED = 1282
The specified glyph number is out of range for this font.
GLYPH_OUT_OF_RANGE = 1281
IMAGE_FILE_CORRUPT
IMAGE_FILE_CORRUPT = 2052
An array or string index was out of range.
INDEX_OUT_OF_RANGE = 8
There is insufficient data to fulfill the read request.
INSUFFICIENT_DATA = 270
An unknown byte order was specified.
INVALID_BYTE_ORDER = 514
An invalid integer size was specified.
INVALID_INTEGER_SIZE = 515
An incompatible page size was specified for a buffered read operation.
INVALID_PAGE_SIZE = 269
An attempt was made to move the current file position before the start
of the file.
MOVE_BEFORE_START_OF_FILE = 264
An attempt was made to move the current file position beyond the end of
the file.
MOVE_BEYOND_END_OF_FILE = 265
The feature or option is planned but has not yet been implemented. It
should be available in a future revision of the framework.
NOT_IMPLEMENTED = 1
The file is not readable by the current user.
NOT_READABLE = 258
The file is not writeable by the current user.
NOT_WRITEABLE = 259
A parameter value was not within the expected range.
PARAMETER_VALUE_OUT_OF_RANGE = 6
This file type must be parsed in a specific order and a parsing method
was called out-of-turn.
PARSED_OUT_OF_ORDER = 518
A required table was not present in the font.
REQUIRED_TABLE_NOT_FOUND = 771
Not enough paramaters were supplied to the method.
TOO_FEW_PARAMETERS = 3
UNSUPPORTED_IMAGE_ENCODING_OPTIONS
UNSUPPORTED_IMAGE_ENCODING_OPTIONS = 2051
The font file type is incorrect.
WRONG_FONT_TYPE = 769
WRONG_IMAGE_TYPE
WRONG_IMAGE_TYPE = 2050