JException:: construct: Difference between revisions
From Joomla! Documentation
Layout updates |
Updated to r1448:247ba8d88526 |
||
| 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 67: | 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 01:53, 28 April 2011
JException::__construct
Description
Constructor
Template: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
Template:SeeAlso:JException:: construct [Edit See Also]
User contributed notes
<CodeExamplesForm />