Actions

API17

Difference between revisions of "JException"

From Joomla! Documentation

(Bulk upload by Doxiki2)
 
m (deprecated template used)
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
__NOTOC__
+
{{deprecated|when=1.6|from=1.7,11.1|old=JException|link=Exceptions and Logging in Joomla 1.7 and Joomla Platform 11.1|new=PHP exceptions instead}}__NOTOC__
 +
=={{JVer|11.1}} 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/11.1|Error]]
 
===Extends===
 
===Extended by===
 
 
===Methods===
 
===Methods===
 
{| class="wikitable sortable"
 
{| class="wikitable sortable"
 
|-
 
|-
 +
!Visibility
 
!Method name
 
!Method name
 
!Description
 
!Description
 
|-
 
|-
 +
|public
 
|[[JException::__construct/11.1|__construct]]
 
|[[JException::__construct/11.1|__construct]]
 
|Constructor
 
|Constructor
  
 
|-
 
|-
 +
|public
 
|[[JException::__toString/11.1|__toString]]
 
|[[JException::__toString/11.1|__toString]]
 
|Returns to error message.  
 
|Returns to error message.  
 
|-
 
|-
 +
|public
 
|[[JException::get/11.1|get]]
 
|[[JException::get/11.1|get]]
 
|Returns a property of the object or the default value if the property is not set.  
 
|Returns a property of the object or the default value if the property is not set.  
 
|-
 
|-
 +
|public
 
|[[JException::getError/11.1|getError]]
 
|[[JException::getError/11.1|getError]]
 
|Get the most recent error message.  
 
|Get the most recent error message.  
 
|-
 
|-
 +
|public
 
|[[JException::getErrors/11.1|getErrors]]
 
|[[JException::getErrors/11.1|getErrors]]
 
|Return all errors, if any.  
 
|Return all errors, if any.  
 
|-
 
|-
 +
|public
 
|[[JException::getProperties/11.1|getProperties]]
 
|[[JException::getProperties/11.1|getProperties]]
 
|Returns an associative array of object properties.  
 
|Returns an associative array of object properties.  
 
|-
 
|-
 +
|public
 
|[[JException::set/11.1|set]]
 
|[[JException::set/11.1|set]]
 
|Modifies a property of the object, creating it if it does not already exist.  
 
|Modifies a property of the object, creating it if it does not already exist.  
 
|-
 
|-
 +
|public
 
|[[JException::setError/11.1|setError]]
 
|[[JException::setError/11.1|setError]]
 
|Add an error message.  
 
|Add an error message.  
 
|-
 
|-
 +
|public
 
|[[JException::setProperties/11.1|setProperties]]
 
|[[JException::setProperties/11.1|setProperties]]
 
|Set the object properties based on a named array/hash.  
 
|Set the object properties based on a named array/hash.  
 
|-
 
|-
 +
|public
 
|[[JException::toString/11.1|toString]]
 
|[[JException::toString/11.1|toString]]
 
|Returns to error message.  
 
|Returns to error message.  
 
|-
 
|-
 
|}
 
|}
 +
* '''Defined in''' libraries/joomla/error/exception.php
 
===Importing===
 
===Importing===
 
<source lang="php">jimport( 'joomla.error.exception' );</source>
 
<source lang="php">jimport( 'joomla.error.exception' );</source>
 
===See also===
 
===See also===
* [[JException|Other versions of this class]]
+
* {{JVer|11.1}} '''JException source code''' on [[jplatform:error/exception.php|BitBucket]]
 +
* {{JVer|11.1}} Subpackage [[Subpackage Error/11.1|Error]]
 +
* [[JException|Other versions of JException]]
 
{{SeeAlso: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>
===Examples===
+
===User contributed notes===
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 64: Line 74:
 
category=ClassExample
 
category=ClassExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
<noinclude>[[Category:Platform]][[Category:Platform 11.1]][[Category:JException]]</noinclude>
+
<noinclude>[[Category:Platform JClasses]][[Category:Platform 11.1]][[Category:JException]]</noinclude>

Revision as of 15:15, 10 September 2012

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.

Joomla 11.1 JException

Description

Description:JException [Edit Descripton]

Methods

Visibility Method name Description
public __construct Constructor
public __toString Returns to error message.
public get Returns a property of the object or the default value if the property is not set.
public getError Get the most recent error message.
public getErrors Return all errors, if any.
public getProperties Returns an associative array of object properties.
public set Modifies a property of the object, creating it if it does not already exist.
public setError Add an error message.
public setProperties Set the object properties based on a named array/hash.
public toString Returns to error message.
  • Defined in libraries/joomla/error/exception.php

Importing

jimport( 'joomla.error.exception' );

See also

SeeAlso:JException [Edit See Also]

User contributed notes

<CodeExamplesForm />