PHP Class SparkPost\SparkPostException

Inheritance: extends Exception
Show file Open project: sparkpost/php-sparkpost

Public Methods

Method Description
__construct ( Exception $exception ) Sets up the custom exception and copies over original exception values.
getBody ( ) : array Returns the body.

Method Details

__construct() public method

Sets up the custom exception and copies over original exception values.
public __construct ( Exception $exception )
$exception Exception - the exception to be wrapped

getBody() public method

Returns the body.
public getBody ( ) : array
return array $body - the json decoded body from the http response