API17

JException:: construct: Difference between revisions

From Joomla! Documentation

Doxiki2 (talk | contribs)
Layout updates
Doxiki2 (talk | contribs)
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>
===Synopsis===
<source lang="php">
<source lang="php">
public JException::__construct ($msg, $code=0, $level=null, $info=null, $backtrace=false)
public function __construct (
        $msg
        $code=0
        $level=null
        $info=null
        $backtrace=false
)
</source>
</source>
{| class="wikitable"
{| class="wikitable"
Line 46: Line 51:
|-
|-
|}
|}
===Returns===
* '''Returns'''
 
* '''Defined''' on line 100 of libraries/joomla/error/exception.php
===Defined in===
libraries/joomla/error/exception.php (line 100)
* see source code in [[jplatform:error/exception.php#cl-100|BitBucket]]
===Referenced by===
===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>
* [[JException/11.1|JException]]
===User contributed notes===
* [[JException::__construct|Other versions of this method]]
{{SeeAlso:JException::__construct}}
===Examples===
<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

Joomla 11.1 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

Template:SeeAlso:JException:: construct [Edit See Also]

User contributed notes

<CodeExamplesForm />