JException
class JException extends Exception
Joomla! Exception object.
Methods
__construct(
string $msg,
integer $code,
integer $level = null,
string $info = null,
boolean $backtrace = false)
Constructor - used to set up the error with all needed error details.
string
__toString()
Returns to error message
string
toString()
Returns to error message
mixed
get(
string $property,
mixed $default = null)
Returns a property of the object or the default value if the property is not set.
array
getProperties(
boolean $public = true)
Returns an associative array of object properties
string
getError(
integer $i = null,
boolean $toString = true)
Get the most recent error message
array
getErrors()
Return all errors, if any
mixed
set(
string $property,
mixed $value = null)
Modifies a property of the object, creating it if it does not already exist.
boolean
setProperties(
mixed $properties)
Set the object properties based on a named array/hash
void
setError(
string $error)
Add an error message
Details
__construct(
string $msg,
integer $code,
integer $level = null,
string $info = null,
boolean $backtrace = false)
Constructor - used to set up the error with all needed error details.
mixed
get(
string $property,
mixed $default = null)
Returns a property of the object or the default value if the property is not set.