PHP Class Tebru\Retrofit\Exception\RequestException

Author: Nate Brunette ([email protected])
Inheritance: extends Exceptio\Exception
Exibir arquivo Open project: tebru/retrofit-php Class Usage Examples

Public Methods

Method Description
__construct ( string $message, integer $code, Exception $previous = null, Psr\Http\Message\RequestInterface $request = null, Psr\Http\Message\ResponseInterface $response = null, array $handlerContext = [] ) Constructor
getHandlerContext ( ) : array Get the context
getRequest ( ) : Psr\Http\Message\RequestInterface Get the request
getResponse ( ) : Psr\Http\Message\ResponseInterface Get the response
hasResponse ( ) : boolean If a response exists

Method Details

__construct() public method

Constructor
public __construct ( string $message, integer $code, Exception $previous = null, Psr\Http\Message\RequestInterface $request = null, Psr\Http\Message\ResponseInterface $response = null, array $handlerContext = [] )
$message string
$code integer
$previous Exception
$request Psr\Http\Message\RequestInterface
$response Psr\Http\Message\ResponseInterface
$handlerContext array

getHandlerContext() public method

Get the context
public getHandlerContext ( ) : array
return array

getRequest() public method

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

getResponse() public method

Get the response
public getResponse ( ) : Psr\Http\Message\ResponseInterface
return Psr\Http\Message\ResponseInterface

hasResponse() public method

If a response exists
public hasResponse ( ) : boolean
return boolean