RequestException
class RequestException extends HttpClientException (View source)
Properties
Response | $response | The response instance. |
|
static int|false | $truncateAt | The truncation length for the exception message. |
Methods
void
static void
truncate()
Enable truncation of request exception messages.
static void
truncateAt(int $length)
Set the truncation length for request exception messages.
static void
dontTruncate()
Disable truncation of request exception messages.
string
Details
void
__construct(Response $response)
Create a new exception instance.
static void
truncate()
Enable truncation of request exception messages.
static void
truncateAt(int $length)
Set the truncation length for request exception messages.
static void
dontTruncate()
Disable truncation of request exception messages.
protected string
prepareMessage(Response $response)
Prepare the exception message.