JException/1.5

From Joomla! Documentation
< JException(Difference between revisions)
Jump to: navigation, search
(Bulk upload by Doxiki2)
 
(Layout updates)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 +
=={{JVer|1.5}} JException==
 +
===Description===
 +
{{Description:JException}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[Description:JException|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JException|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
{{Description:JException}}
 
===Defined in===
 
libraries/joomla/error/exception.php
 
===Subpackage===
 
[[Subpackage Error/1.5|Error]]
 
===Extends===
 
[[JObject/1.5|JObject]]
 
===Extended by===
 
 
===Methods===
 
===Methods===
 
{| class="wikitable sortable"
 
{| class="wikitable sortable"
 
|-
 
|-
 +
!Visibility
 
!Method name
 
!Method name
 
!Description
 
!Description
 
|-
 
|-
 +
|public
 
|[[JException::__construct/1.5|__construct]]
 
|[[JException::__construct/1.5|__construct]]
 
|Constructor
 
|Constructor
  
 
|-
 
|-
 +
|public
 
|[[JException::getCode/1.5|getCode]]
 
|[[JException::getCode/1.5|getCode]]
 
|Method to get the exception code.  
 
|Method to get the exception code.  
 
|-
 
|-
 +
|public
 
|[[JException::getFile/1.5|getFile]]
 
|[[JException::getFile/1.5|getFile]]
 
|Method to get the source filename where the exception occured.  
 
|Method to get the source filename where the exception occured.  
 
|-
 
|-
 +
|public
 
|[[JException::getLine/1.5|getLine]]
 
|[[JException::getLine/1.5|getLine]]
 
|Method to get the source line where the exception occured.  
 
|Method to get the source line where the exception occured.  
 
|-
 
|-
 +
|public
 
|[[JException::getMessage/1.5|getMessage]]
 
|[[JException::getMessage/1.5|getMessage]]
 
|Method to get the exception message.  
 
|Method to get the exception message.  
 
|-
 
|-
 +
|public
 
|[[JException::getTrace/1.5|getTrace]]
 
|[[JException::getTrace/1.5|getTrace]]
 
|Method to get the array of the backtrace().  
 
|Method to get the array of the backtrace().  
 
|-
 
|-
 +
|public
 
|[[JException::getTraceAsString/1.5|getTraceAsString]]
 
|[[JException::getTraceAsString/1.5|getTraceAsString]]
 
|Method to get the formatted backtrace information.  
 
|Method to get the formatted backtrace information.  
 
|-
 
|-
 +
|public
 
|[[JException::toString/1.5|toString]]
 
|[[JException::toString/1.5|toString]]
 
|Returns to error message.  
 
|Returns to error message.  
 
|-
 
|-
 
|}
 
|}
 +
* '''Defined in''' libraries/joomla/error/exception.php
 +
* '''Extends''' [[JObject/1.5|JObject]]
 
===Importing===
 
===Importing===
 
<source lang="php">jimport( 'joomla.error.exception' );</source>
 
<source lang="php">jimport( 'joomla.error.exception' );</source>
 
===See also===
 
===See also===
 +
* {{JVer|1.5}} '''JException''' on [http://api.joomla.org/Joomla-Framework/Error/JException.html api.joomla.org]
 +
* {{JVer|1.5}} '''JException source code''' on [[jframework15:error/exception.php|JoomlaCode]]
 +
* {{JVer|1.5}} Subpackage [[Subpackage Error/1.5|Error]]
 +
* [[JException|Other versions of JException]]
 +
{{SeeAlso:JException}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JException|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JException|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
{{SeeAlso:JException}}
+
===User contributed notes===
* [[JException|Other versions of this class]]
+
* [http://api.joomla.org/Joomla-Framework/Error/JException.html JException on api.joomla.org]
+
===Examples===
+
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 60: Line 68:
 
category=ClassExample
 
category=ClassExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
 
<noinclude>[[Category:Framework]][[Category:Framework 1.5]][[Category:JException]]</noinclude>
 
<noinclude>[[Category:Framework]][[Category:Framework 1.5]][[Category:JException]]</noinclude>

Revision as of 18:09, 25 April 2011

Joomla 1.5 JException

Description

Description:JException [Edit Descripton]

Methods

Visibility Method name Description
public __construct Constructor
public getCode Method to get the exception code.
public getFile Method to get the source filename where the exception occured.
public getLine Method to get the source line where the exception occured.
public getMessage Method to get the exception message.
public getTrace Method to get the array of the backtrace().
public getTraceAsString Method to get the formatted backtrace information.
public toString Returns to error message.
  • Defined in libraries/joomla/error/exception.php
  • Extends JObject

Importing

jimport( 'joomla.error.exception' );

See also

SeeAlso:JException [Edit See Also]

User contributed notes

<CodeExamplesForm />


Personal tools
Namespaces

Variants
Actions
Navigation
Joomla! Sites
Toolbox