extends |
RuntimeException |
---|---|
implements |
HttpExceptionInterface, OpenSearchException |
Exception thrown when an HTTP error occurs.
Methods | ||
---|---|---|
public
|
__construct(int $statusCode, string $message = '', array $headers = [], int $code = 0, ?Throwable $previous = null)
|
# |
public
|
getStatusCode(): int
|
# |
public
|
getHeaders(): array
|
# |
Methods inherited from Exception |
---|
__wakeup(), getMessage(), getCode(), getFile(), getLine(), getTrace(), getPrevious(), getTraceAsString(), __toString() |
Properties | |||
---|---|---|---|
protected
readonly
|
int
|
$statusCode
|
# |
protected
readonly
|
array
|
$headers
|
# |