Craft 3 Class Reference

Class craft\web\ServiceUnavailableHttpException

Inheritance
craft\web\ServiceUnavailableHttpException » yii\web\HttpException » yii\base\UserException » yii\base\Exception » Exception
Source Code
https://github.com/craftcms/cms/blob/master/src/web/ServiceUnavailableHttpException.php

UnavailableHttpException represents a "Service Unavailable" HTTP exception with status code 503.

Public Properties
Property Type Description Defined By
$statusCode integer HTTP status code, such as 403, 404, 500, etc. yii\web\HttpException
Public Methods
Method Description Defined By
__construct() Constructor. craft\web\ServiceUnavailableHttpException
getName() yii\base\Exception

Method Details

__construct() public method #

Constructor.

public void __construct ( \craft\web\string $message null, \craft\web\int $code 0, Exception $previous null )
$message string, null The error message.
$code integer The error code.
$previous Exception, null The previous exception used for the exception chaining.