API17:JException:: construct
From Joomla! Documentation
(Difference between revisions)
(Bulk upload by Doxiki2) |
(Updated to r1448:247ba8d88526) |
||
| (One intermediate revision by one user not shown) | |||
| Line 9: | Line 9: | ||
<nowiki>[</nowiki>[[Description:JException::__construct|Edit Descripton]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[Description:JException::__construct|Edit Descripton]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
| − | |||
<source lang="php"> | <source lang="php"> | ||
| − | public | + | public function __construct ( |
| + | $msg | ||
| + | $code=0 | ||
| + | $level=null | ||
| + | $info=null | ||
| + | $backtrace=false | ||
| + | ) | ||
</source> | </source> | ||
{| class="wikitable" | {| class="wikitable" | ||
| Line 46: | Line 51: | ||
|- | |- | ||
|} | |} | ||
| − | + | * '''Returns''' | |
| − | + | * '''Defined''' on line 100 of libraries/joomla/error/exception.php | |
| − | + | ||
| − | libraries/joomla/error/exception.php | + | |
| − | + | ||
===See also=== | ===See also=== | ||
| + | * {{JVer|11.1}} '''JException::__construct source code''' on [[jplatform:error/exception.php#cl-92|BitBucket]] | ||
| + | * {{JVer|11.1}} Class [[JException/11.1|JException]] | ||
| + | * {{JVer|11.1}} Subpackage [[Subpackage_Error/11.1|Error]] | ||
| + | * [[JException::__construct|Other versions of JException::__construct]] | ||
| + | {{SeeAlso:JException::__construct}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[SeeAlso:JException::__construct|Edit See Also]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[SeeAlso:JException::__construct|Edit See Also]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
| − | + | ===User contributed notes=== | |
| − | + | ||
| − | + | ||
| − | === | + | |
<CodeExamplesForm /> | <CodeExamplesForm /> | ||
<dpl> | <dpl> | ||
| Line 66: | Line 70: | ||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
| + | namespace=CodeExample | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
<noinclude>[[Category:JException]][[Category:JException::__construct]]</noinclude> | <noinclude>[[Category:JException]][[Category:JException::__construct]]</noinclude> | ||
Revision as of 20:53, 27 April 2011
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.
JException::__construct
Description
Constructor
Description:JException:: construct
[Edit Descripton]
public function __construct ( $msg $code=0 $level=null $info=null $backtrace=false )
| Parameter | Type | Default | Description |
|---|---|---|---|
| $msg | string | The error message | |
| $code | string | 0 | The error code from the application |
| $level | int | null | The error level (use the PHP constants E_ALL, E_NOTICE etc.). |
| $info | string | null | Optional: The additional error information. |
| $backtrace | boolean | false | True if backtrace information is to be collected |
- Returns
- Defined on line 100 of libraries/joomla/error/exception.php
See also
-
JException::__construct source code on BitBucket
-
Class JException
-
Subpackage Error
- Other versions of JException::__construct
SeeAlso:JException:: construct [Edit See Also]
User contributed notes
<CodeExamplesForm />
