API Documentation

Pdf/Exception.php

Includes Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Pdf
subpackage
Core
version
$Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
Classes
Zend_Pdf_Exception

Description

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.

Zend_Pdf_Exception

Extends from
Zend_Exception
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Pdf
subpackage
Core
Constants
NOT_IMPLEMENTED
DEPRECATED
TOO_FEW_PARAMETERS
BAD_PARAMETER_TYPE
BAD_PARAMETER_VALUE
PARAMETER_VALUE_OUT_OF_RANGE
BAD_METHOD_SIGNATURE
INDEX_OUT_OF_RANGE
BAD_FILE_PATH
NOT_READABLE
NOT_WRITEABLE
FILE_NOT_OPEN
CANT_OPEN_FILE
CANT_GET_FILE_POSITION
CANT_SET_FILE_POSITION
MOVE_BEFORE_START_OF_FILE
MOVE_BEYOND_END_OF_FILE
CANT_GET_FILE_SIZE
ERROR_DURING_READ
ERROR_DURING_WRITE
INVALID_PAGE_SIZE
INSUFFICIENT_DATA
BAD_DATA_SOURCE
INVALID_BYTE_ORDER
INVALID_INTEGER_SIZE
BAD_FIXED_POINT_SIZE
CANT_READ_STRING
PARSED_OUT_OF_ORDER
WRONG_FONT_TYPE
BAD_TABLE_COUNT
REQUIRED_TABLE_NOT_FOUND
DONT_UNDERSTAND_TABLE_VERSION
BAD_MAGIC_NUMBER
CANT_FIND_GOOD_CMAP
CMAP_TYPE_UNSUPPORTED
CMAP_UNKNOWN_TYPE
CMAP_TABLE_DATA_TOO_SMALL
CMAP_WRONG_TABLE_TYPE
CMAP_WRONG_TABLE_LENGTH
CMAP_NOT_LANGUAGE_INDEPENDENT
CMAP_FINAL_OFFSET_NOT_LENGTH
CMAP_WRONG_ENTRY_COUNT
GLYPH_OUT_OF_RANGE
FONT_CANT_BE_EMBEDDED
BAD_FONT_NAME
CANT_DETERMINE_FONT_TYPE
BAD_ATTRIBUTE_VALUE
CANT_DETERMINE_IMAGE_TYPE
WRONG_IMAGE_TYPE
UNSUPPORTED_IMAGE_ENCODING_OPTIONS
IMAGE_FILE_CORRUPT

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.

Constants

NOT_IMPLEMENTED

 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.

Details

value
0x0001

DEPRECATED

 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.

Details

value
0x0002

TOO_FEW_PARAMETERS

 TOO_FEW_PARAMETERS = '0x0003'

Not enough paramaters were supplied to the method.

Details

value
0x0003

BAD_PARAMETER_TYPE

 BAD_PARAMETER_TYPE = '0x0004'

A parameter was of the wrong data type.

Details

value
0x0004

BAD_PARAMETER_VALUE

 BAD_PARAMETER_VALUE = '0x0005'

A parameter contained an unusable value.

Details

value
0x0005

PARAMETER_VALUE_OUT_OF_RANGE

 PARAMETER_VALUE_OUT_OF_RANGE = '0x0006'

A parameter value was not within the expected range.

Details

value
0x0006

BAD_METHOD_SIGNATURE

 BAD_METHOD_SIGNATURE = '0x0007'

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

Details

value
0x0007

INDEX_OUT_OF_RANGE

 INDEX_OUT_OF_RANGE = '0x0008'

An array or string index was out of range.

Details

value
0x0008

BAD_FILE_PATH

 BAD_FILE_PATH = '0x0101'

The file path was unusable or invalid.

Details

value
0x0101

NOT_READABLE

 NOT_READABLE = '0x0102'

The file is not readable by the current user.

Details

value
0x0102

NOT_WRITEABLE

 NOT_WRITEABLE = '0x0103'

The file is not writeable by the current user.

Details

value
0x0103

FILE_NOT_OPEN

 FILE_NOT_OPEN = '0x0104'

The file resource has been closed unexpectedly.

Details

value
0x0104

CANT_OPEN_FILE

 CANT_OPEN_FILE = '0x0105'

An error was encountered while attempting to open the file.

Details

value
0x0105

CANT_GET_FILE_POSITION

 CANT_GET_FILE_POSITION = '0x0106'

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

Details

value
0x0106

CANT_SET_FILE_POSITION

 CANT_SET_FILE_POSITION = '0x0107'

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

Details

value
0x0107

MOVE_BEFORE_START_OF_FILE

 MOVE_BEFORE_START_OF_FILE = '0x0108'

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

Details

value
0x0108

MOVE_BEYOND_END_OF_FILE

 MOVE_BEYOND_END_OF_FILE = '0x0109'

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

Details

value
0x0109

CANT_GET_FILE_SIZE

 CANT_GET_FILE_SIZE = '0x010a'

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

Details

value
0x010a

ERROR_DURING_READ

 ERROR_DURING_READ = '0x010b'

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

Details

value
0x010b

ERROR_DURING_WRITE

 ERROR_DURING_WRITE = '0x010c'

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

Details

value
0x010c

INVALID_PAGE_SIZE

 INVALID_PAGE_SIZE = '0x010d'

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

Details

value
0x010d

INSUFFICIENT_DATA

 INSUFFICIENT_DATA = '0x010e'

There is insufficient data to fulfill the read request.

Details

value
0x010e

BAD_DATA_SOURCE

 BAD_DATA_SOURCE = '0x0201'

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

Details

value
0x0201

INVALID_BYTE_ORDER

 INVALID_BYTE_ORDER = '0x0202'

An unknown byte order was specified.

Details

value
0x0202

INVALID_INTEGER_SIZE

 INVALID_INTEGER_SIZE = '0x0203'

An invalid integer size was specified.

Details

value
0x0203

BAD_FIXED_POINT_SIZE

 BAD_FIXED_POINT_SIZE = '0x0204'

An invalid fixed-point number size was specified.

Details

value
0x0204

CANT_READ_STRING

 CANT_READ_STRING = '0x0205'

The string cannot be read.

Details

value
0x0205

PARSED_OUT_OF_ORDER

 PARSED_OUT_OF_ORDER = '0x0206'

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

Details

value
0x0206

WRONG_FONT_TYPE

 WRONG_FONT_TYPE = '0x0301'

The font file type is incorrect.

Details

value
0x0301

BAD_TABLE_COUNT

 BAD_TABLE_COUNT = '0x0302'

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

Details

value
0x0302

REQUIRED_TABLE_NOT_FOUND

 REQUIRED_TABLE_NOT_FOUND = '0x0303'

A required table was not present in the font.

Details

value
0x0303

DONT_UNDERSTAND_TABLE_VERSION

 DONT_UNDERSTAND_TABLE_VERSION = '0x0303'

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

Details

value
0x0303

BAD_MAGIC_NUMBER

 BAD_MAGIC_NUMBER = '0x0304'

The magic number in the font file is incorrect.

Details

value
0x0304

CANT_FIND_GOOD_CMAP

 CANT_FIND_GOOD_CMAP = '0x0305'

Could not locate a usable character map for this font.

Details

value
0x0305

CMAP_TYPE_UNSUPPORTED

 CMAP_TYPE_UNSUPPORTED = '0x0401'

The character map type is currently unsupported.

Details

value
0x0401

CMAP_UNKNOWN_TYPE

 CMAP_UNKNOWN_TYPE = '0x0402'

The type of the character map is not understood.

Details

value
0x0402

CMAP_TABLE_DATA_TOO_SMALL

 CMAP_TABLE_DATA_TOO_SMALL = '0x0403'

The character map table data is too small.

Details

value
0x0403

CMAP_WRONG_TABLE_TYPE

 CMAP_WRONG_TABLE_TYPE = '0x0404'

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

Details

value
0x0404

CMAP_WRONG_TABLE_LENGTH

 CMAP_WRONG_TABLE_LENGTH = '0x0405'

The character map table data contains in incorrect length.

Details

value
0x0405

CMAP_NOT_LANGUAGE_INDEPENDENT

 CMAP_NOT_LANGUAGE_INDEPENDENT = '0x0406'

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

Details

value
0x0406

CMAP_FINAL_OFFSET_NOT_LENGTH

 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.

Details

value
0x0407

CMAP_WRONG_ENTRY_COUNT

 CMAP_WRONG_ENTRY_COUNT = '0x0408'

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

Details

value
0x0408

GLYPH_OUT_OF_RANGE

 GLYPH_OUT_OF_RANGE = '0x0501'

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

Details

value
0x0501

FONT_CANT_BE_EMBEDDED

 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.

Details

value
0x0502

BAD_FONT_NAME

 BAD_FONT_NAME = '0x0601'

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

Details

value
0x0601

CANT_DETERMINE_FONT_TYPE

 CANT_DETERMINE_FONT_TYPE = '0x0602'

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

Details

value
0x0602

BAD_ATTRIBUTE_VALUE

 BAD_ATTRIBUTE_VALUE = '0x0701'

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

Details

value
0x0701

CANT_DETERMINE_IMAGE_TYPE

 CANT_DETERMINE_IMAGE_TYPE = '0x0801'

Details

value
0x0801

WRONG_IMAGE_TYPE

 WRONG_IMAGE_TYPE = '0x0802'

Details

value
0x0802

UNSUPPORTED_IMAGE_ENCODING_OPTIONS

 UNSUPPORTED_IMAGE_ENCODING_OPTIONS = '0x0803'

Details

value
0x0803

IMAGE_FILE_CORRUPT

 IMAGE_FILE_CORRUPT = '0x0804'

Details

value
0x0804
Documentation was generated by DocBlox.