PHP Class Ouzo\ExceptionHandling\Error

Show file Open project: letsdrink/ouzo Class Usage Examples

Public Properties

Property Type Description
$code
$message
$originalMessage

Public Methods

Method Description
__construct ( $code, $message, $originalMessage = null )
forException ( Exception $exception )
getByCode ( $code, $params = [], $prefix = 'errors.' )
getCode ( )
getMessage ( )
toArray ( )

Private Methods

Method Description
_classNameAndMessage ( Exception $exception )

Method Details

__construct() public method

public __construct ( $code, $message, $originalMessage = null )

forException() public static method

public static forException ( Exception $exception )
$exception Exception

getByCode() public static method

public static getByCode ( $code, $params = [], $prefix = 'errors.' )

getCode() public method

public getCode ( )

getMessage() public method

public getMessage ( )

toArray() public method

public toArray ( )

Property Details

$code public property

public $code

$message public property

public $message

$originalMessage public property

public $originalMessage