HTML_Progress::raiseError
sets the progress meter identification string
Synopsisrequire_once 'HTML/Progress.php';
void HTML_Progress::raiseError(
string $code
string $level
array $params)
DescriptionThis 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'. |
SeeHTML_Progress::hasErrors,
HTML_Progress::getError
Prev |
Up |
Next |
HTML_Progress::getListeners |
Reference Guide |
HTML_Progress::hasErrors |
|
|