PHP Class yii\web\UnauthorizedHttpException

Use this exception to indicate that a client needs to authenticate or login to perform the requested action. If the client is already authenticated and is simply not allowed to perform the action, consider using a 403 ForbiddenHttpException or 404 NotFoundHttpException instead.
Inheritance: extends HttpException
Show file Open project: yiisoft/yii2

Public Methods

Method Description
__construct ( string $message = null, integer $code, Exception $previous = null ) Constructor.

Method Details

__construct() public method

Constructor.
public __construct ( string $message = null, integer $code, Exception $previous = null )
$message string error message
$code integer error code
$previous Exception The previous exception used for the exception chaining.