API16

JException: Difference between revisions

From Joomla! Documentation

Doxiki (talk | contribs)
New page: <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki> </span> {{Description:JException}} ===Defined in=== ...
 
m clean up
Line 1: Line 1:
<span class="editsection" style="font-size:76%;">
{{subst:Description:JException}}
<nowiki>[</nowiki>[[Description:JException|Edit Descripton]]<nowiki>]</nowiki>
</span>
{{Description:JException}}


===Defined in===
===Defined in===
Line 48: Line 45:
<source lang="php">jimport( 'joomla.error.exception' );</source>
<source lang="php">jimport( 'joomla.error.exception' );</source>


<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JException|Edit See Also]]<nowiki>]</nowiki>
{{subst:SeeAlso:JException}}
</span>
{{SeeAlso:JException}}


===Examples===
===Examples===

Revision as of 13:57, 24 March 2017

{{subst:Description:JException}}

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' );


{{subst:SeeAlso:JException}}

Examples

<CodeExamplesForm />