LSUserException
extends CHttpException
in package
Table of Contents
Properties
- $detailedErrors : array<string|int, string>
- $noReload : bool
- $redirectUrl : string
Methods
- __construct() : mixed
- Alternating constructor for json compatible error handling
- getDetailedErrors() : array<string|int, string>
- Returns the detailed errors array
- getDetailedErrorSummary() : mixed
- getNoReload() : mixed
- getRedirectUrl() : mixed
- setDetailedErrors() : static
- Sets the detailed errors array from model errors
- setDetailedErrorsFromModel() : static
- Sets the detailed errors array from model errors
- setNoReload() : static
- Sets the "No Reload" property
- setRedirectUrl() : static
- Sets the redirect URL
Properties
$detailedErrors
private
array<string|int, string>
$detailedErrors
= []
$noReload
private
bool
$noReload
= \false
$redirectUrl
private
string
$redirectUrl
= \null
Methods
__construct()
Alternating constructor for json compatible error handling
public
__construct(int $status[, string $message = null ][, int $code = 0 ][, string $redirectUrl = null ][, bool $noReload = false ]) : mixed
Parameters
- $status : int
- $message : string = null
- $code : int = 0
- $redirectUrl : string = null
- $noReload : bool = false
getDetailedErrors()
Returns the detailed errors array
public
getDetailedErrors() : array<string|int, string>
Return values
array<string|int, string>getDetailedErrorSummary()
public
getDetailedErrorSummary([mixed $header = '' ][, mixed $htmlOptions = [] ]) : mixed
Parameters
- $header : mixed = ''
- $htmlOptions : mixed = []
getNoReload()
public
getNoReload() : mixed
getRedirectUrl()
public
getRedirectUrl() : mixed
setDetailedErrors()
Sets the detailed errors array from model errors
public
setDetailedErrors(array<string|int, string> $errors) : static
Parameters
- $errors : array<string|int, string>
Return values
static —Return self instance to allow method chaining
setDetailedErrorsFromModel()
Sets the detailed errors array from model errors
public
setDetailedErrorsFromModel(CModel $model) : static
Parameters
- $model : CModel
Return values
static —Return self instance to allow method chaining
setNoReload()
Sets the "No Reload" property
public
setNoReload(bool $noReload) : static
Parameters
- $noReload : bool
Return values
static —Return self instance to allow method chaining
setRedirectUrl()
Sets the redirect URL
public
setRedirectUrl(string $redirectUrl) : static
Parameters
- $redirectUrl : string
Return values
static —Return self instance to allow method chaining