PHP Class Ouzo\ExceptionHandling\Error

Afficher le fichier Open project: letsdrink/ouzo Class Usage Examples

Méthodes publiques

Свойство Type Description
$code
$message
$originalMessage

Méthodes publiques

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

Private Methods

Méthode Description
_classNameAndMessage ( Exception $exception )

Method Details

__construct() public méthode

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

forException() public static méthode

public static forException ( Exception $exception )
$exception Exception

getByCode() public static méthode

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

getCode() public méthode

public getCode ( )

getMessage() public méthode

public getMessage ( )

toArray() public méthode

public toArray ( )

Property Details

$code public_oe property

public $code

$message public_oe property

public $message

$originalMessage public_oe property

public $originalMessage