Actions

API15

Difference between revisions of "JException"

From Joomla! Documentation

(New page: <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki> </span> {{Description:JException}} ===Defined in=== ...)
 
 
Line 38: Line 38:
 
|Returns to error message
 
|Returns to error message
 
|}
 
|}
 +
 
===Importing===
 
===Importing===
 
<source lang="php">jimport( 'joomla.error.exception' );</source>
 
<source lang="php">jimport( 'joomla.error.exception' );</source>

Latest revision as of 12:35, 25 March 2010

Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

[Edit Descripton] Description:JException

Contents

Defined in

libraries/joomla/error/exception.php

Methods

Method name Description
__construct Constructor

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

getMessage Method to get the exception message
getCode Method to get the exception code
getFile Method to get the source filename where the exception occured
getLine Method to get the source line where the exception occured
getTrace Method to get the array of the backtrace()
getTraceAsString Method to get the formatted backtrace information
toString Returns to error message

Importing

jimport( 'joomla.error.exception' );

[Edit See Also] SeeAlso:JException

Examples

<CodeExamplesForm />