ServiceUnavailableHttpException

Type
Class
Namespace
craft\web
Inherits
craft\web\ServiceUnavailableHttpException » yii\web\HttpException » yii\base\UserException » yii\base\Exception » Exception

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

View source

Public Properties

PropertyDescription
$statusCodeinteger – HTTP status code, such as 403, 404, 500, etc.

Public Methods

MethodDescription
__construct()Constructor.
getName()

__construct()

Constructor.

View source

Arguments

  • $message (string, null) – The error message.
  • $code (integer) – The error code.
  • $previous (Exception, null) – The previous exception used for the exception chaining.

Signature

public void __construct ( \craft\web\string $message = null, \craft\web\int $code = 0, Exception $previous = null )