Actions

API17

Difference between revisions of "JException"

From Joomla! Documentation

m (deprecated template used)
m (moving preparation)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{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__
+
{{deprecated|when=1.5|from=2.5,11.1|old=JException|link=J2.5:Exceptions and Logging in Joomla Platform 11.1 and Joomla 2.5|new=PHP exceptions instead}}__NOTOC__
 
=={{JVer|11.1}} JException==
 
=={{JVer|11.1}} JException==
 
===Description===
 
===Description===
Line 14: Line 14:
 
|-
 
|-
 
|public  
 
|public  
|[[JException::__construct/11.1|__construct]]
+
|[[API17:JException::__construct|__construct]]
 
|Constructor
 
|Constructor
  
 
|-
 
|-
 
|public  
 
|public  
|[[JException::__toString/11.1|__toString]]
+
|[[API17:JException::__toString|__toString]]
 
|Returns to error message.  
 
|Returns to error message.  
 
|-
 
|-
 
|public  
 
|public  
|[[JException::get/11.1|get]]
+
|[[API17:JException::get|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  
 
|public  
|[[JException::getError/11.1|getError]]
+
|[[API17:JException::getError|getError]]
 
|Get the most recent error message.  
 
|Get the most recent error message.  
 
|-
 
|-
 
|public  
 
|public  
|[[JException::getErrors/11.1|getErrors]]
+
|[[API17:JException::getErrors|getErrors]]
 
|Return all errors, if any.  
 
|Return all errors, if any.  
 
|-
 
|-
 
|public  
 
|public  
|[[JException::getProperties/11.1|getProperties]]
+
|[[API17:JException::getProperties|getProperties]]
 
|Returns an associative array of object properties.  
 
|Returns an associative array of object properties.  
 
|-
 
|-
 
|public  
 
|public  
|[[JException::set/11.1|set]]
+
|[[API17:JException::set|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  
 
|public  
|[[JException::setError/11.1|setError]]
+
|[[API17:JException::setError|setError]]
 
|Add an error message.  
 
|Add an error message.  
 
|-
 
|-
 
|public  
 
|public  
|[[JException::setProperties/11.1|setProperties]]
+
|[[API17:JException::setProperties|setProperties]]
 
|Set the object properties based on a named array/hash.  
 
|Set the object properties based on a named array/hash.  
 
|-
 
|-
 
|public  
 
|public  
|[[JException::toString/11.1|toString]]
+
|[[API17:JException::toString|toString]]
 
|Returns to error message.  
 
|Returns to error message.  
 
|-
 
|-
Line 60: Line 60:
 
===See also===
 
===See also===
 
* {{JVer|11.1}} '''JException source code''' on [[jplatform:error/exception.php|BitBucket]]
 
* {{JVer|11.1}} '''JException source code''' on [[jplatform:error/exception.php|BitBucket]]
* {{JVer|11.1}} Subpackage [[Subpackage Error/11.1|Error]]
+
* {{JVer|11.1}} Subpackage [[API17:Subpackage Error|Error]]
* [[JException|Other versions of JException]]
+
* [[API17:JException|Other versions of JException]]
 
{{SeeAlso:JException}}
 
{{SeeAlso:JException}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
Line 77: Line 77:
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
<noinclude>[[Category:Platform JClasses]][[Category:Platform 11.1]][[Category:JException]]</noinclude>
+
<noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude>

Latest revision as of 20:36, 11 May 2013

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

  • Joomla 11.1 JException source code on BitBucket
  • Joomla 11.1 Subpackage Error
  • Other versions of JException

SeeAlso:JException [Edit See Also]

User contributed notes

<CodeExamplesForm />