Support Joomla!

references:joomla.framework:utilities:jerror-raisewarning

Table of Contents

raiseWarning

API Package Subpackage Class Method Reference Last reviewed Doc status
API Home Package Joomla.Framework Subpackage Utilities Class JError Method raiseWarning Reference raiseWarning() Never Work in Progress

This is a wrapper for the raise method that passes E_WARNING as the error level. A patError object will be returned.

Syntax

object &raiseWarning ( $code, $msg, $info )

$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 Optional: Additional error information (usually only developer-relevant information that the user should never see, like a database DSN).

Examples

Example

JError::raiseWarning( '6000', 'File access error!' );

might produce:

Result

jos-Warning: File access error!
 
references/joomla.framework/utilities/jerror-raisewarning.txt (780 views) · Last modified: 2007/09/22 02:51