Class shardimage\shardimagephpapi\web\exceptions\HttpException
Public Properties
Property | Type | Description | Defined By |
---|---|---|---|
$errors | array|null | Errors | shardimage\shardimagephpapi\web\exceptions\HttpException |
$statusCode | integer | HTTP status code | shardimage\shardimagephpapi\web\exceptions\HttpException |
Public Methods
Method | Description | Defined By |
---|---|---|
__construct() | shardimage\shardimagephpapi\web\exceptions\HttpException | |
getHeaders() | Getting $headers property | shardimage\shardimagephpapi\web\exceptions\HttpException |
getName() | shardimage\shardimagephpapi\web\exceptions\HttpException | |
newInstance() | New instance of this exception | shardimage\shardimagephpapi\web\exceptions\HttpException |
setHeaders() | Setting $headers property | shardimage\shardimagephpapi\web\exceptions\HttpException |
Property Details
Errors
HTTP status code
Method Details
public void __construct ( $message = null, $code = 0, $errors = null, $previous = null, $statusCode = 500 ) | ||
$message | ||
$code | ||
$errors | ||
$previous | ||
$statusCode |
Getting $headers property
public array|null getHeaders ( ) |
public void getName ( ) |
New instance of this exception
public static void newInstance ( $statusCode, $message = null, $code = 0, $errors = null, $previous = null, $headers = null ) | ||
$statusCode | integer | HTTP status code |
$message | string | |
$code | integer | |
$errors | mixed | |
$previous | Throwable | |
$headers | ||
throws | Throwable |
---|
Setting $headers property
public void setHeaders ( $headers ) | ||
$headers | array |