ServiceUnavailableHttpException
- Type
- Class
- Namespace
- craft\web
- Inherits
- craft\web\ServiceUnavailableHttpException » yii\web\HttpException (opens new window) » yii\base\UserException (opens new window) » yii\base\Exception (opens new window) » Exception (opens new window)
UnavailableHttpException represents a "Service Unavailable" HTTP exception with status code 503.
View source (opens new window)
# Public Properties
Property | Description |
---|---|
statusCode (opens new window) | integer (opens new window) – HTTP status code, such as 403, 404, 500, etc. |
# Public Methods
Method | Description |
---|---|
__construct() | Constructor. |
getName() (opens new window) |
# __construct()
Constructor.
View source (opens new window)
Arguments
$message
(string (opens new window), null (opens new window)) – The error message.$code
(integer (opens new window)) – The error code.$previous
(Exception (opens new window), null (opens new window)) – The previous exception used for the exception chaining.