Error.php
\Conjoon_Error
Package: Conjoon\Error
A class representing an error in the conjoon application.
- Parent(s)
- \Conjoon_BeanContext
- Children
- \Conjoon_Error_Form
- Author
- Thorsten Suckow-Homberg
- Category
- Error
- Uses
- \Conjoon_BeanContext
- Uses
- \Serializable
Constants
Properties
Methods

__toString(
)
:
stringReturns a textual representation of the current object.
Returns
| Type | Description |
|---|---|
| string |

fromException(
\Exception $e, $errorClass
=
'Conjoon_Error'
)
:
\Conjoon_Error
static
Creates a new instance of Conjoon_Error based on the passed exception.
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $e | \Exception | Any exception that should be casted to an instance of Conjoon_Error |
| $errorClass |
| Type | Description |
|---|---|
| \Conjoon_Error |

fromFilter(
\Zend_Filter_Input $filter, \Zend_Filter_Exception $e
)
:
\Conjoon_Error_Form
static
Creates a Conjoon_Error_Form based on the fields that where marked as errorneous in the passed filter-instance.
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $filter | \Zend_Filter_Input | |
| $e | \Zend_Filter_Exception |
| Type | Description |
|---|---|
| \Conjoon_Error_Form |

getDto(
)
:
\Conjoon_ErrorDtoReturns a Dto for an instance of this class.
Returns
| Type | Description |
|---|---|
| \Conjoon_ErrorDto |

serialize(
)
:
stringSerializes properties and returns them as a string which can later on be unserialized.
Returns
| Type | Description |
|---|---|
| string |

toArray(
)
:
arrayReturns an associative array, which key/value pairs represent the properties stored by this object.
Returns
| Type | Description |
|---|---|
| array |