PHP 클래스 Tebru\Retrofit\Exception\RequestException

저자: Nate Brunette ([email protected])
상속: extends Exceptio\Exception
파일 보기 프로젝트 열기: tebru/retrofit-php 1 사용 예제들

공개 메소드들

메소드 설명
__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

메소드 상세

__construct() 공개 메소드

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() 공개 메소드

Get the context
public getHandlerContext ( ) : array
리턴 array

getRequest() 공개 메소드

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

getResponse() 공개 메소드

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

hasResponse() 공개 메소드

If a response exists
public hasResponse ( ) : boolean
리턴 boolean