PHP Class Ouzo\ExceptionHandling\Error

ファイルを表示 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_oe property

public $code

$message public_oe property

public $message

$originalMessage public_oe property

public $originalMessage