Actions

API17

Difference between revisions of "JError::raise"

From Joomla! Documentation

(Bulk upload by Doxiki2)
 
(Updated to r1448:247ba8d88526)
(One intermediate revision by one user 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
+
* '''Referenced by'''
===Referenced by===
+
** [[raiseError/11.1|raiseError]]
* [[raiseError/11.1|raiseError]]
+
** [[raiseNotice/11.1|raiseNotice]]
* [[raiseNotice/11.1|raiseNotice]]
+
** [[raiseWarning/11.1|raiseWarning]]
* [[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 [[JError/11.1|JError]]
 +
* {{JVer|11.1}} Subpackage [[Subpackage_Error/11.1|Error]]
 +
* [[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 70: Line 74:
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
 
<noinclude>[[Category:JError]][[Category:JError::raise]]</noinclude>
 
<noinclude>[[Category:JError]][[Category:JError::raise]]</noinclude>

Revision as of 20:52, 27 April 2011

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 JError::raise

Description

Create a new object given the passed arguments.

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

SeeAlso:JError::raise [Edit See Also]

User contributed notes

<CodeExamplesForm />