Viewing file: tutorial_progress.raiseerror.pkg.html (4.76 KB) -rw-r--r-- Select action/file-type: (+ ) | (+ ) | (+ ) | Code (+ ) | Session (+ ) | (+ ) | SDB (+ ) | (+ ) | (+ ) | (+ ) | (+ ) | (+ ) |
HTML_Progress::raiseError
HTML_Progress::raiseError
sets the progress meter identification string
Synopsis
require_once 'HTML/Progress.php';
void
HTML_Progress::raiseError (
string
$code
string
$level
array
$params )
Description This method is used to raise an API error and push it to the HTML_Progress stack.
Default behavior will returns a PEAR_Error object.
Parameter
integer
$code
the error code (a valid HTML_PROGRESS_ERROR_* constant).
string
$level
the error level ('exception', 'error', 'warning').
array
$params
an associative array of error parameters.
Note ( HTML_Progress >= 1.2.0RC1, PEAR )
This function can be called statically.
The HTML_Progress error stack follows the same PEAR_ErrorStack structure: associative array
with keys 'code', 'params', 'package', 'level', 'time', 'context'.
See HTML_Progress::hasErrors ,
HTML_Progress::getError
Prev
Up
Next
HTML_Progress::getListeners
Reference Guide
HTML_Progress::hasErrors