API17:JError::raise
From Joomla! Documentation
(Difference between revisions)
(Layout updates) |
(Updated to r1448:247ba8d88526) |
||
| Line 8: | Line 8: | ||
<nowiki>[</nowiki>[[Description:JError::raise|Edit Descripton]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[Description:JError::raise|Edit Descripton]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
| − | |||
| − | |||
| − | |||
<source lang="php"> | <source lang="php"> | ||
| − | public static | + | public static function raise ( |
| + | $level | ||
| + | $code | ||
| + | $msg | ||
| + | $info=null | ||
| + | $backtrace=false | ||
| + | ) | ||
</source> | </source> | ||
{| class="wikitable" | {| class="wikitable" | ||
| Line 47: | Line 50: | ||
|- | |- | ||
|} | |} | ||
| − | + | * '''Returns''' mixed The object | |
| − | mixed The object | + | * '''Defined''' on line 131 of libraries/joomla/error/error.php |
| − | + | * '''Since''' {{JVer|11.1}} | |
| − | libraries/joomla/error/error.php | + | * '''Referenced by''' |
| − | * | + | ** [[raiseError/11.1|raiseError]] |
| − | + | ** [[raiseNotice/11.1|raiseNotice]] | |
| − | * [[raiseError/11.1|raiseError]] | + | ** [[raiseWarning/11.1|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 [[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> | ||
| − | + | ===User contributed notes=== | |
| − | + | ||
| − | + | ||
| − | === | + | |
<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:JError]][[Category:JError::raise]]</noinclude> | ||
Revision as of 20:52, 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.
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 |
- Returns mixed The object
- Defined on line 131 of libraries/joomla/error/error.php
- Since
- Referenced by
See also
-
JError::raise source code on BitBucket
-
Class JError
-
Subpackage Error
- Other versions of JError::raise
SeeAlso:JError::raise [Edit See Also]
User contributed notes
<CodeExamplesForm />
