PHP Class LeagueWrap\Response\ResponseException

Inheritance: extends Exceptio\Exception
Show file Open project: paquettg/leaguewrap

Protected Properties

Property Type Description
$response LeagueWrap\Response Response that caused this exception.

Public Methods

Method Description
getResponse ( ) : Response Access the response.
hasResponse ( ) : boolean Check if response was provided.
withResponse ( string $message, Response $response ) : static Static constructor for including response.

Method Details

getResponse() public method

Access the response.
public getResponse ( ) : Response
return LeagueWrap\Response

hasResponse() public method

Check if response was provided.
public hasResponse ( ) : boolean
return boolean

withResponse() public static method

Static constructor for including response.
public static withResponse ( string $message, Response $response ) : static
$message string
$response LeagueWrap\Response
return static

Property Details

$response protected property

Response that caused this exception.
protected Response,LeagueWrap $response
return LeagueWrap\Response