Pdf/Exception.php
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.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Pdf
- Subpackage
- Core
- Version
- $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
\Zend_Pdf_Exception
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.
- Parent(s)
- \Zend_Exception < \Exception
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Constants
NOT_IMPLEMENTED
= 1It should be available in a future revision of the framework.
DEPRECATED
= 2The descriptive text accompanying this exception should explain how to use the replacement features or options.
BAD_METHOD_SIGNATURE
= 7
CANT_GET_FILE_POSITION
= 262
MOVE_BEFORE_START_OF_FILE
= 264
MOVE_BEYOND_END_OF_FILE
= 265
PARSED_OUT_OF_ORDER
= 518
DONT_UNDERSTAND_TABLE_VERSION
= 771
CMAP_NOT_LANGUAGE_INDEPENDENT
= 1030Character maps must be language-independent.
CMAP_FINAL_OFFSET_NOT_LENGTH
= 1031
CMAP_WRONG_ENTRY_COUNT
= 1032
FONT_CANT_BE_EMBEDDED
= 1282You must specify the no-embed option to use this font.
BAD_FONT_NAME
= 1537Properties

null|\Exception $_previous = nullnullDetails- Type
- null | \Exception
- Inherited_from
- \Zend_Exception::$$_previous
Methods

__call(string $method, array $args) : mixedFor 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| Name | Type | Description |
|---|---|---|
| $msg | string | |
| $code | int | |
| $previous | \Exception |