Error.php

Show: inherited
Table of Contents

\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

Constant  UNKNOWN = 'CONJOON_ERROR_UNKNOWN'
Constant  INPUT = 'CONJOON_ERROR_INPUT'
Constant  AUTHORIZATION = 'CONJOON_ERROR_AUTHORIZATION'
Constant  LOCKED = 'CONJOON_ERROR_LOCKED'
Constant  TOKEN_FAILURE = 'CONJOON_ERROR_TOKEN_FAILURE'
Constant  DATA = 'CONJOON_ERROR_DATA'
Constant  LEVEL_CRITICAL = 'critical'
Constant  LEVEL_WARNING = 'warning'
Constant  LEVEL_ERROR = 'error'

Properties

Propertyprotected  $code= ''
Details
Type
n/a
Propertyprotected  $file= ''
Details
Type
n/a
Propertyprotected  $level= ''
Details
Type
n/a
Propertyprotected  $line= ''
Details
Type
n/a
Propertyprotected  $message= ''
Details
Type
n/a
Propertyprotected  $type= ''
Details
Type
n/a

Methods

methodpublic__construct( ) : void

Constructor.

methodpublic__toString( ) : string

Returns a textual representation of the current object.

Returns
Type Description
string
methodpublicfromException( \Exception $e,  $errorClass = 'Conjoon_Error' ) : \Conjoon_Error
static

Creates a new instance of Conjoon_Error based on the passed exception.

Parameters
Name Type Description
$e \Exception

Any exception that should be casted to an instance of Conjoon_Error

$errorClass
Returns
Type Description
\Conjoon_Error
methodpublicfromFilter( \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
Name Type Description
$filter \Zend_Filter_Input
$e \Zend_Filter_Exception
Returns
Type Description
\Conjoon_Error_Form
methodpublicgetCode( ) : void

methodpublicgetDto( ) : \Conjoon_ErrorDto

Returns a Dto for an instance of this class.

Returns
Type Description
\Conjoon_ErrorDto
methodpublicgetFile( ) : void

methodpublicgetLevel( ) : void

methodpublicgetLine( ) : void

methodpublicgetMessage( ) : void

methodpublicgetType( ) : void

methodpublicserialize( ) : string

Serializes properties and returns them as a string which can later on be unserialized.

Returns
Type Description
string
methodpublicsetCode(  $code ) : void

Parameters
Name Type Description
$code
methodpublicsetFile(  $file ) : void

Parameters
Name Type Description
$file
methodpublicsetLevel(  $level ) : void

Parameters
Name Type Description
$level
methodpublicsetLine(  $line ) : void

Parameters
Name Type Description
$line
methodpublicsetMessage(  $message ) : void

Parameters
Name Type Description
$message
methodpublicsetType(  $type ) : void

Parameters
Name Type Description
$type
methodpublictoArray( ) : array

Returns an associative array, which key/value pairs represent the properties stored by this object.

Returns
Type Description
array
methodpublicunserialize( string $serialized ) : void

Unserializes $serialized and assigns the specific values found to the members in this class.

Parameters
Name Type Description
$serialized string

The serialized representation of a former instance of this class.

Documentation was generated by DocBlox 0.18.1.