RequestException
class RequestException extends HttpClientException (View source)
Properties
| Response | $response | The response instance. |
|
| int|false|null | $truncateExceptionsAt | The current truncation length for the exception message. |
|
| static int|false | $truncateAt | The global truncation length for the exception message. |
|
| bool | $hasBeenSummarized | Whether the response has been summarized in the message. |
Methods
Create a new exception instance.
Enable truncation of request exception messages.
Set the truncation length for request exception messages.
Disable truncation of request exception messages.
Prepare the exception message.
Details
__construct(Response $response, int|false|null $truncateExceptionsAt = null)
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.
bool
report()
Prepare the exception message.
protected string
prepareMessage(Response $response)
Prepare the exception message.
Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.