Lines Matching full:error
29 * ERROR constants
115 * Default error mode for this object.
123 * Default error options used for this object when error mode
132 * Default error handler (callback) for this object, if error mode is
141 * Which class to use for error objects.
166 * error objects, defaults to PEAR_Error.
263 * Tell whether a value is a PEAR error.
266 * @param int $code if $data is an error object, return true
271 * @return bool true if parameter is an error
303 * When $mode is PEAR_ERROR_TRIGGER, this is the error level (one
314 * a printf format string used when printing the error
356 trigger_error("invalid error callback", E_USER_WARNING);
361 trigger_error("invalid error mode", E_USER_WARNING);
371 * Expected errors are always returned with error mode
372 * PEAR_ERROR_RETURN. Expected error codes are stored in a stack,
379 * @param mixed $code a single error code or an array of error codes to expect
398 * This method pops one element off the expected error codes
401 * @return array the list of error codes that were popped
412 * This method checks unsets an error code if available
414 * @param mixed error code
415 * @return bool true if the error code was unset, false otherwise
442 * the expected error codes stack.
444 * @param mixed $error_code error code that should be deleted
445 * @return mixed list of error codes that were deleted or error
457 foreach($error_code as $key => $error) {
458 if ($this->_checkDelExpect($error)) {
464 …return $deleted ? true : PEAR::raiseError("The expected error you submitted does not exist"); // I…
470 … return PEAR::raiseError("The expected error you submitted does not exist"); // IMPROVE ME
474 return PEAR::raiseError("The expected error you submitted is empty"); // IMPROVE ME
483 * configured error class with this object's default error
487 * @param mixed $message a text error message or a PEAR error object
489 * @param int $code a numeric error code (it is up to your class
497 * specifies the PHP-internal error level (one of
501 * method. In other error modes this parameter
507 * @param string $error_class The returned error object will be
510 * @param bool $skipmsg If true, raiseError will only pass error codes,
511 * the error message parameter will be dropped.
514 * @return object a PEAR error object
526 // The error is yet a PEAR error object
544 // Class error handler
548 // Global error handler
618 trigger_error("invalid error callback", E_USER_WARNING);
623 trigger_error("invalid error mode", E_USER_WARNING);
655 trigger_error("invalid error callback", E_USER_WARNING);
660 trigger_error("invalid error mode", E_USER_WARNING);
669 * Push a new error handler on top of the error handler options stack. With this
670 * you can easily override the actual error handler for some code and restore
705 * Pop the last error handler used
738 // if either returns true dl() will produce a FATAL error, stop that
800 * Standard PEAR error class for PHP 4
812 * @link http://pear.php.net/manual/en/core.pear.pear-error.php
836 * @param int $code (optional) error code
838 * @param int $mode (optional) error mode, one of: PEAR_ERROR_RETURN,
842 * @param mixed $options (optional) error level, _OR_ in the case of
851 function PEAR_Error($message = 'unknown error', $code = null,
914 * Get the error mode from an error object.
916 * @return int error mode
927 * Get the callback function/method from an error object.
941 * Get the error message from an error object.
943 * @return string full error message
956 * Get error code from an error object
958 * @return int error code
970 * Get the name of this error/exception.
972 * @return string error/exception name (type)
1012 * Get the call backtrace from where the error was generated.
1055 E_USER_ERROR => 'error');