Skip to content
PHP Ecosystem
Explore

ConflictHttpException

API reference › yii › web › ConflictHttpException

classyii\web\ConflictHttpException
ExtendsHttpException » yii\base\UserException » yii\base\Exception » Exception
Since2.0
Sourceframework/web/ConflictHttpException.php

ConflictHttpException represents a “Conflict” HTTP exception with status code 409.

See also: https://tools.ietf.org/html/rfc7231#section-6.5.8.

PropertyTypeDescriptionDefined by
$statusCodeintHTTP status code, such as 403, 404, 500, etc. Default: null.HttpException
MethodDescriptionDefined by
__construct()Constructor.ConflictHttpException
getName()HttpException
public function __construct(string|null $message = null, int $code = 0, Throwable|null $previous = null)

Constructor.

Parameters

ParameterTypeDescription
$messagestring|nullError message
$codeintError code
$previousThrowable|nullThe previous exception used for the exception chaining.