API17

Difference between revisions of "JError::raise"

From Joomla! Documentation

(Layout updates)
m (moving preparation)
(3 intermediate revisions by 2 users not shown)
Line 8: Line 8:
 
<nowiki>[</nowiki>[[Description:JError::raise|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JError::raise|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
===Since===
 
{{JVer|11.1}}
 
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
public static JError::raise ($level, $code, $msg, $info=null, $backtrace=false)
+
public static function raise (
 +
        $level
 +
        $code
 +
        $msg
 +
        $info=null
 +
        $backtrace=false
 +
)
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 47: Line 50:
 
|-
 
|-
 
|}
 
|}
===Returns===
+
* '''Returns''' mixed The  object
mixed The  object
+
* '''Defined''' on line 131 of libraries/joomla/error/error.php
===Defined in===
+
* '''Since''' {{JVer|11.1}}
libraries/joomla/error/error.php (line 123)
+
* '''Referenced by'''
* see source code in [[jplatform:error/error.php#cl-123|BitBucket]]
+
** [[raiseError|raiseError]]
===Referenced by===
+
** [[raiseNotice|raiseNotice]]
* [[raiseError/11.1|raiseError]]
+
** [[raiseWarning|raiseWarning]]
* [[raiseNotice/11.1|raiseNotice]]
 
* [[raiseWarning/11.1|raiseWarning]]
 
 
===See also===
 
===See also===
 +
* {{JVer|11.1}} '''JError::raise source code''' on [[jplatform:error/error.php#cl-123|BitBucket]]
 +
* {{JVer|11.1}} Class [[API17:JError|JError]]
 +
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Error|Error]]
 +
* [[API17:JError::raise|Other versions of JError::raise]]
 +
{{SeeAlso:JError::raise}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JError::raise|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JError::raise|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
* [[JError/11.1|JError]]
+
===User contributed notes===
* [[JError::raise|Other versions of this method]]
 
{{SeeAlso:JError::raise}}
 
===Examples===
 
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 71: Line 74:
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
<noinclude>[[Category:JError]][[Category:JError::raise]]</noinclude>
+
<noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude>

Revision as of 20:35, 11 May 2013

The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Joomla 11.1 JError::raise[edit]

Description[edit]

Create a new object given the passed arguments.

Template:Description:JError::raise [Edit Descripton]

public static function raise (
        $level
        $code
        $msg
        $info=null
        $backtrace=false
)
Parameter Type Default Description
$level int The error level - use any of PHP's own error levels for this: E_ERROR, E_WARNING, E_NOTICE, E_USER_ERROR, E_USER_WARNING, E_USER_NOTICE.
$code string The application-internal error code for this error
$msg string The error message, which may also be shown the user if need be.
$info mixed null Optional: Additional error information (usually only developer-relevant information that the user should never see, like a database DSN).
$backtrace false

See also[edit]

Template:SeeAlso:JError::raise [Edit See Also]

User contributed notes[edit]

<CodeExamplesForm />