Copied!
Instantiable
-
Extends
Exception RuntimeException GuzzleHttp\Exception\TransferException GuzzleHttp\Exception\RequestException - Implements
- All
- self
- GuzzleHttp\Exception\RequestException
- GuzzleHttp\Exception\TransferException
- RuntimeException
- Exception
Methods |
public GuzzleHttp\Exception\RequestException :: __construct ( string $message , Psr\Http\Message\RequestInterface $request , ? Psr\Http\Message\ResponseInterface $response = NULL , ? Throwable $previous = NULL , array $handlerContext = [ ] ) |
public Exception :: __toString () : string |
public Exception :: __wakeup () |
public
static
GuzzleHttp\Exception\RequestException
::
create
(
Psr\Http\Message\RequestInterface
$request
,
?
Psr\Http\Message\ResponseInterface
$response
=
NULL
,
?
Throwable
$previous
=
NULL
,
array
$handlerContext
=
[
]
,
?
GuzzleHttp\BodySummarizerInterface
$bodySummarizer
=
NULL
) :
self
Factory method to create a new exception with a normalized error message |
public final Exception :: getCode () |
public final Exception :: getFile () : string |
public
GuzzleHttp\Exception\RequestException
::
getHandlerContext
() :
array
Get contextual information about the error from the underlying handler. The contents of this array will vary depending on which handler you are |
public final Exception :: getLine () : int |
public final Exception :: getMessage () : string |
public final Exception :: getPrevious () : ? Throwable |
public
GuzzleHttp\Exception\RequestException
::
getRequest
() :
Psr\Http\Message\RequestInterface
Get the request that caused the exception |
public
GuzzleHttp\Exception\RequestException
::
getResponse
() : ?
Psr\Http\Message\ResponseInterface
Get the associated response |
public final Exception :: getTrace () : array |
public final Exception :: getTraceAsString () : string |
public
GuzzleHttp\Exception\RequestException
::
hasResponse
() :
bool
Check if a response was received |
public
static
GuzzleHttp\Exception\RequestException
::
wrapException
(
Psr\Http\Message\RequestInterface
$request
,
Throwable
$e
) :
GuzzleHttp\Exception\RequestException
Wrap non-RequestExceptions with a RequestException |
Properties |
protected Exception :: $code |
protected Exception :: $file |
protected Exception :: $line |
protected Exception :: $message |
Methods |
public
static
GuzzleHttp\Exception\RequestException
::
create
(
Psr\Http\Message\RequestInterface
$request
,
?
Psr\Http\Message\ResponseInterface
$response
=
NULL
,
?
Throwable
$previous
=
NULL
,
array
$handlerContext
=
[
]
,
?
GuzzleHttp\BodySummarizerInterface
$bodySummarizer
=
NULL
) :
self
Factory method to create a new exception with a normalized error message |
public
static
GuzzleHttp\Exception\RequestException
::
wrapException
(
Psr\Http\Message\RequestInterface
$request
,
Throwable
$e
) :
GuzzleHttp\Exception\RequestException
Wrap non-RequestExceptions with a RequestException |