JException: Difference between revisions
From Joomla! Documentation
New page: <span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki>
</span>
{{Description:JException}}
===Defined in===
... |
m preparing for archive only |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
===Defined in=== | ===Defined in=== | ||
libraries/joomla/error/exception.php | libraries/joomla/error/exception.php | ||
| Line 48: | Line 43: | ||
<source lang="php">jimport( 'joomla.error.exception' );</source> | <source lang="php">jimport( 'joomla.error.exception' );</source> | ||
===Examples=== | ===Examples=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JException | category=JException | ||
namespace=CodeExample | |||
category=ClassExample | category=ClassExample | ||
include=* | include=* | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
Latest revision as of 01:37, 25 March 2017
Defined in
libraries/joomla/error/exception.php
Methods
| Method name | Description |
|---|---|
| __construct | Constructor
used to set up the error with all needed error details. |
| __toString | Returns to error message |
| toString | Returns to error message |
| get | Returns a property of the object or the default value if the property is not set. |
| getProperties | Returns an associative array of object properties |
| getError | Get the most recent error message |
| getErrors | Return all errors, if any |
| set | Modifies a property of the object, creating it if it does not already exist. |
| setProperties | Set the object properties based on a named array/hash |
| setError | Add an error message |
Importing
jimport( 'joomla.error.exception' );
Examples
Code Examples