PHP Class Phprest\Entity\Error

Show file Open project: phprest/phprest Class Usage Examples

Protected Properties

Property Type Description
$code integer
$details array
$message string

Public Methods

Method Description
__construct ( Exception $exception )
getCode ( ) : integer
getDetails ( ) : array
getMessage ( ) : string

Method Details

__construct() public method

public __construct ( Exception $exception )
$exception Exception

getCode() public method

public getCode ( ) : integer
return integer

getDetails() public method

public getDetails ( ) : array
return array

getMessage() public method

public getMessage ( ) : string
return string

Property Details

$code protected property

protected int $code
return integer

$details protected property

protected array $details
return array

$message protected property

protected string $message
return string