Lines Matching full:error

27  * ERROR constants
102 * Default error mode for this object.
110 * Default error options used for this object when error mode
119 * Default error handler (callback) for this object, if error mode is
128 * Which class to use for error objects.
149 * error objects, defaults to PEAR_Error.
244 * Tell whether a value is a PEAR error.
247 * @param int $code if $data is an error object, return true
252 * @return bool true if parameter is an error
282 * When $mode is PEAR_ERROR_TRIGGER, this is the error level (one
293 * a printf format string used when printing the error
334 trigger_error("invalid error callback", E_USER_WARNING);
339 trigger_error("invalid error mode", E_USER_WARNING);
346 * Expected errors are always returned with error mode
347 * PEAR_ERROR_RETURN. Expected error codes are stored in a stack,
354 * @param mixed $code a single error code or an array of error codes to expect
370 * This method pops one element off the expected error codes
373 * @return array the list of error codes that were popped
381 * This method checks unsets an error code if available
383 * @param mixed error code
384 * @return bool true if the error code was unset, false otherwise
408 * the expected error codes stack.
410 * @param mixed $error_code error code that should be deleted
411 * @return mixed list of error codes that were deleted or error
421 foreach ($error_code as $key => $error) {
422 $deleted = $this->_checkDelExpect($error) ? true : false;
425 …return $deleted ? true : PEAR::raiseError("The expected error you submitted does not exist"); // I…
432 … return PEAR::raiseError("The expected error you submitted does not exist"); // IMPROVE ME
436 return PEAR::raiseError("The expected error you submitted is empty"); // IMPROVE ME
441 * configured error class with this object's default error
445 * @param mixed $message a text error message or a PEAR error object
447 * @param int $code a numeric error code (it is up to your class
455 * specifies the PHP-internal error level (one of
459 * method. In other error modes this parameter
465 * @param string $error_class The returned error object will be
468 * @param bool $skipmsg If true, raiseError will only pass error codes,
469 * the error message parameter will be dropped.
472 * @return object a PEAR error object
484 // The error is yet a PEAR error object
509 // Class error handler
513 // Global error handler
547 * @param mixed $message a text error message or a PEAR error object
549 * @param int $code a numeric error code (it is up to your class
556 * @return object a PEAR error object
593 trigger_error("invalid error callback", E_USER_WARNING);
598 trigger_error("invalid error mode", E_USER_WARNING);
630 trigger_error("invalid error callback", E_USER_WARNING);
635 trigger_error("invalid error mode", E_USER_WARNING);
642 * Push a new error handler on top of the error handler options stack. With this
643 * you can easily override the actual error handler for some code and restore
675 * Pop the last error handler used
708 // if either returns true dl() will produce a FATAL error, stop that
784 * Standard PEAR error class for PHP 4
796 * @link http://pear.php.net/manual/en/core.pear.pear-error.php
815 * @param int $code (optional) error code
817 * @param int $mode (optional) error mode, one of: PEAR_ERROR_RETURN,
821 * @param mixed $options (optional) error level, _OR_ in the case of
830 function PEAR_Error($message = 'unknown error', $code = null,
904 * Get the error mode from an error object.
906 * @return int error mode
915 * Get the callback function/method from an error object.
926 * Get the error message from an error object.
928 * @return string full error message
937 * Get error code from an error object
939 * @return int error code
948 * Get the name of this error/exception.
950 * @return string error/exception name (type)
981 * Get the call backtrace from where the error was generated.
1024 E_USER_ERROR => 'error');