class JException extends Exception


Located at : UKNOWVA_ROOT/libraries/joomla/error/exception.php

deprecated

Joomla! Exception object.

Methods

__construct(string $msg, string $code, integer $level = null, string $info = null, boolean $backtrace = false) deprecated

Constructor - used to set up the error with all needed error details.

string
__toString() deprecated

Returns to error message

string
toString() deprecated

Returns to error message

mixed
get(string $property, mixed $default = null) deprecated

Returns a property of the object or the default value if the property is not set.

array
getProperties(boolean $public = true) deprecated

Returns an associative array of object properties

string
getError(integer $i = null, boolean $toString = true) deprecated

Get the most recent error message

array
getErrors() deprecated

Return all errors, if any

mixed
set(string $property, mixed $value = null) deprecated

Modifies a property of the object, creating it if it does not already exist.

boolean
setProperties($properties) deprecated

Set the object properties based on a named array/hash

void
setError(string $error) deprecated

Add an error message

Details

at line 114
__construct(string $msg, string $code, integer $level = null, string $info = null, boolean $backtrace = false) deprecated

deprecated 12.1

Constructor - used to set up the error with all needed error details.

Parameters

string $msg The error message
string $code The error code from the application
integer $level The error level (use the PHP constants EALL, ENOTICE etc.).
string $info Optional: The additional error information.
boolean $backtrace True if backtrace information is to be collected

at line 170
string __toString() deprecated

deprecated 12.1

Returns to error message

Return Value

string Error message

at line 183
string toString() deprecated

deprecated 12.1

Returns to error message

Return Value

string Error message

at line 200
mixed get(string $property, mixed $default = null) deprecated

deprecated 12.1

Returns a property of the object or the default value if the property is not set.

Parameters

string $property The name of the property
mixed $default The default value

Return Value

mixed The value of the property or null

See also

getProperties()

at line 219
array getProperties(boolean $public = true) deprecated

deprecated 12.1

Returns an associative array of object properties

Parameters

boolean $public If true, returns only the public properties

Return Value

array Object properties

See also

get()

at line 246
string getError(integer $i = null, boolean $toString = true) deprecated

deprecated 12.1

Get the most recent error message

Parameters

integer $i Option error index
boolean $toString Indicates if JError objects should return their error message

Return Value

string Error message

at line 278
array getErrors() deprecated

deprecated 12.1

Return all errors, if any

Return Value

array Array of error messages or JErrors

at line 296
mixed set(string $property, mixed $value = null) deprecated

deprecated 12.1

Modifies a property of the object, creating it if it does not already exist.

Parameters

string $property The name of the property
mixed $value The value of the property to set

Return Value

mixed Previous value of the property

See also

setProperties()

at line 314
boolean setProperties($properties) deprecated

deprecated 12.1

Set the object properties based on a named array/hash

Parameters

$properties

Return Value

boolean

See also

set()

at line 342
void setError(string $error) deprecated

deprecated 12.1

Add an error message

Parameters

string $error Error message

Return Value

void