PHP Class Tebru\Retrofit\Event\ApiExceptionEvent

Author: Nate Brunette ([email protected])
Inheritance: extends Symfony\Component\EventDispatcher\Event
Show file Open project: tebru/retrofit-php Class Usage Examples

Public Methods

Method Description
__construct ( Exception $exception, Psr\Http\Message\RequestInterface $request = null ) Constructor
getException ( ) : Exception Get the exception
getRequest ( ) : Psr\Http\Message\RequestInterface Get the request
setException ( Exception $exception ) Set updated exception back to event

Method Details

__construct() public method

Constructor
public __construct ( Exception $exception, Psr\Http\Message\RequestInterface $request = null )
$exception Exception
$request Psr\Http\Message\RequestInterface

getException() public method

Get the exception
public getException ( ) : Exception
return Exception

getRequest() public method

Get the request
public getRequest ( ) : Psr\Http\Message\RequestInterface
return Psr\Http\Message\RequestInterface

setException() public method

Set updated exception back to event
public setException ( Exception $exception )
$exception Exception