Class Zend_Pdf_Exception

Description

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.

  • copyright: Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
  • license: New BSD License

Located in /Pdf/Exception.php (line 51)

Exception
   |
   --Zend_Exception
      |
      --Zend_Pdf_Exception
Class Constant Summary
 BAD_DATA_SOURCE = 0x0201
 BAD_FILE_PATH = 0x0101
 BAD_FONT_NAME = 0x0601
 BAD_MAGIC_NUMBER = 0x0304
 BAD_TABLE_COUNT = 0x0302
 CANT_OPEN_FILE = 0x0105
 CANT_READ_STRING = 0x0205
 DEPRECATED = 0x0002
 FILE_NOT_OPEN = 0x0104
 NOT_IMPLEMENTED = 0x0001
 NOT_READABLE = 0x0102
 NOT_WRITEABLE = 0x0103
 WRONG_FONT_TYPE = 0x0301
 WRONG_IMAGE_TYPE = 0x0802
Methods
Class Constants
BAD_ATTRIBUTE_VALUE = 0x0701 (line 331)

The specified attribute value for the text object cannot be used.

BAD_DATA_SOURCE = 0x0201 (line 186)

The file parser data source object was invalid or improperly initialized.

BAD_FILE_PATH = 0x0101 (line 109)

The file path was unusable or invalid.

BAD_FIXED_POINT_SIZE = 0x0204 (line 201)

An invalid fixed-point number size was specified.

BAD_FONT_NAME = 0x0601 (line 318)

The font name did not match any previously instantiated font and is not one of the standard 14 PDF fonts.

BAD_MAGIC_NUMBER = 0x0304 (line 241)

The magic number in the font file is incorrect.

BAD_METHOD_SIGNATURE = 0x0007 (line 95)

The method that has multiple signatures could not understand the number and/or types of parameters.

BAD_PARAMETER_TYPE = 0x0004 (line 79)

A parameter was of the wrong data type.

BAD_PARAMETER_VALUE = 0x0005 (line 84)

A parameter contained an unusable value.

BAD_TABLE_COUNT = 0x0302 (line 226)

The number of tables contained in the font is outside the expected range.

CANT_DETERMINE_FONT_TYPE = 0x0602 (line 323)

The factory method could not determine the type of the font file.

CANT_DETERMINE_IMAGE_TYPE = 0x0801 (line 336)
CANT_FIND_GOOD_CMAP = 0x0305 (line 246)

Could not locate a usable character map for this font.

CANT_GET_FILE_POSITION = 0x0106 (line 135)

An error was encountered while attempting to obtain the current file position.

CANT_GET_FILE_SIZE = 0x010a (line 157)

An error was encountered while attempting to obtain the file size.

CANT_OPEN_FILE = 0x0105 (line 129)

An error was encountered while attempting to open the file.

CANT_READ_STRING = 0x0205 (line 206)

The string cannot be read.

CANT_SET_FILE_POSITION = 0x0107 (line 140)

An error was encountered while attempting to set a new file position.

CMAP_FINAL_OFFSET_NOT_LENGTH = 0x0407 (line 287)

The final byte offset when reading the character map table data does not match the reported length of the table.

CMAP_NOT_LANGUAGE_INDEPENDENT = 0x0406 (line 281)

This character map table is language-dependent. Character maps must be language-independent.

CMAP_TABLE_DATA_TOO_SMALL = 0x0403 (line 265)

The character map table data is too small.

CMAP_TYPE_UNSUPPORTED = 0x0401 (line 255)

The character map type is currently unsupported.

CMAP_UNKNOWN_TYPE = 0x0402 (line 260)

The type of the character map is not understood.

CMAP_WRONG_ENTRY_COUNT = 0x0408 (line 292)

The character map subtable entry count does not match the expected value.

CMAP_WRONG_TABLE_LENGTH = 0x0405 (line 275)

The character map table data contains in incorrect length.

CMAP_WRONG_TABLE_TYPE = 0x0404 (line 270)

The character map table data is for a different type of table.

DEPRECATED = 0x0002 (line 69)

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.

DONT_UNDERSTAND_TABLE_VERSION = 0x0303 (line 236)

The parser does not understand this version of this table in the font.

ERROR_DURING_READ = 0x010b (line 162)

An error was encountered while attempting to read data from the file.

ERROR_DURING_WRITE = 0x010c (line 167)

An error was encountered while attempting to write data to the file.

FILE_NOT_OPEN = 0x0104 (line 124)

The file resource has been closed unexpectedly.

FONT_CANT_BE_EMBEDDED = 0x0502 (line 308)

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.

GLYPH_OUT_OF_RANGE = 0x0501 (line 301)

The specified glyph number is out of range for this font.

IMAGE_FILE_CORRUPT = 0x0804 (line 339)
INDEX_OUT_OF_RANGE = 0x0008 (line 100)

An array or string index was out of range.

INSUFFICIENT_DATA = 0x010e (line 177)

There is insufficient data to fulfill the read request.

INVALID_BYTE_ORDER = 0x0202 (line 191)

An unknown byte order was specified.

INVALID_INTEGER_SIZE = 0x0203 (line 196)

An invalid integer size was specified.

INVALID_PAGE_SIZE = 0x010d (line 172)

An incompatible page size was specified for a buffered read operation.

MOVE_BEFORE_START_OF_FILE = 0x0108 (line 146)

An attempt was made to move the current file position before the start of the file.

MOVE_BEYOND_END_OF_FILE = 0x0109 (line 152)

An attempt was made to move the current file position beyond the end of the file.

NOT_IMPLEMENTED = 0x0001 (line 62)

The feature or option is planned but has not yet been implemented. It should be available in a future revision of the framework.

NOT_READABLE = 0x0102 (line 114)

The file is not readable by the current user.

NOT_WRITEABLE = 0x0103 (line 119)

The file is not writeable by the current user.

PARAMETER_VALUE_OUT_OF_RANGE = 0x0006 (line 89)

A parameter value was not within the expected range.

PARSED_OUT_OF_ORDER = 0x0206 (line 212)

This file type must be parsed in a specific order and a parsing method was called out-of-turn.

REQUIRED_TABLE_NOT_FOUND = 0x0303 (line 231)

A required table was not present in the font.

TOO_FEW_PARAMETERS = 0x0003 (line 74)

Not enough paramaters were supplied to the method.

UNSUPPORTED_IMAGE_ENCODING_OPTIONS = 0x0803 (line 338)
WRONG_FONT_TYPE = 0x0301 (line 221)

The font file type is incorrect.

WRONG_IMAGE_TYPE = 0x0802 (line 337)

Documentation generated on Mon, 21 Jun 2010 15:20:57 -0400 by phpDocumentor 1.4.3