LSUserException

Extends\CHttpException

package

Default

Methods

Alternating constructor for json compatible error handling

__construct(integer $status,string $message = null,integer $code,string $redirectUrl = null,boolean $noReload = false)

Arguments

$status

integer

$message

string

$code

integer

$redirectUrl

string

$noReload

boolean

Returns the detailed errors array

getDetailedErrors(): array<mixed,string>

Response

array<mixed,string>

getDetailedErrorSummary

getDetailedErrorSummary( $header = '', $htmlOptions = array())

Arguments

$header

$htmlOptions

getNoReload

getNoReload()

getRedirectUrl

getRedirectUrl()

Sets the detailed errors array from model errors

setDetailedErrors(array<mixed,string> $errors): static

Arguments

$errors

array<mixed,string>

Response

static

Return self instance to allow method chaining

Sets the detailed errors array from model errors

setDetailedErrorsFromModel(\CModel $model): static

Arguments

$model

\CModel

Response

static

Return self instance to allow method chaining

Sets the "No Reload" property

setNoReload(boolean $noReload): static

Arguments

$noReload

boolean

Response

static

Return self instance to allow method chaining

Sets the redirect URL

setRedirectUrl(string $redirectUrl): static

Arguments

$redirectUrl

string

Response

static

Return self instance to allow method chaining

Properties

redirectUrl

redirectUrl :string
var

Type(s)

string

noReload

noReload :boolean
var

Type(s)

boolean

detailedErrors

detailedErrors :array<mixed,string>
var

Type(s)

array<mixed,string>