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> | ||
− | |||
− | |||
− | |||
<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|raiseError]] |
− | + | ** [[raiseNotice|raiseNotice]] | |
− | * [[raiseError | + | ** [[raiseWarning|raiseWarning]] |
− | * [[raiseNotice | ||
− | * [[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> | ||
− | + | ===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: | + | <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.
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 |
- Returns mixed The object
- Defined on line 131 of libraries/joomla/error/error.php
- Since
- Referenced by
See also[edit]
- JError::raise source code on BitBucket
- Class JError
- Subpackage Error
- Other versions of JError::raise
Template:SeeAlso:JError::raise [Edit See Also]
User contributed notes[edit]
<CodeExamplesForm />