public class ErrorModule extends AbstractQuercusModule
Modifier and Type | Field and Description |
---|---|
static int |
DEBUG_BACKTRACE_IGNORE_ARGS |
static int |
DEBUG_BACKTRACE_PROVIDE_OBJECT |
static int |
E_ALL |
static int |
E_COMPILE_ERROR |
static int |
E_COMPILE_WARNING |
static int |
E_CORE_ERROR |
static int |
E_CORE_WARNING |
static int |
E_DEPRECATED |
static int |
E_ERROR |
static int |
E_NOTICE |
static int |
E_PARSE |
static int |
E_RECOVERABLE_ERROR |
static int |
E_STRICT |
static int |
E_USER_DEPRECATED |
static int |
E_USER_ERROR |
static int |
E_USER_NOTICE |
static int |
E_USER_WARNING |
static int |
E_WARNING |
PHP_INI_ALL, PHP_INI_PERDIR, PHP_INI_SYSTEM, PHP_INI_USER
Constructor and Description |
---|
ErrorModule() |
Modifier and Type | Method and Description |
---|---|
static ArrayValue |
debug_backtrace_exception(Env env,
java.lang.Throwable e,
int options) |
static ArrayValue |
debug_backtrace(Env env,
int options,
int limit)
Produces a backtrace
|
static Value |
die(Env env,
java.lang.String msg)
Exits
|
static Value |
error_get_last(Env env)
Returns the last error.
|
static boolean |
error_log(Env env,
StringValue message,
int type,
StringValue destination,
StringValue extraHeaders)
Send a message to the log.
|
static long |
error_reporting(Env env,
Value levelV)
Changes the error reporting value.
|
Value |
exit(Env env,
Value msg)
Exits
|
IniDefinitions |
getIniDefinitions()
Returns the default php.ini values.
|
static boolean |
restore_error_handler(Env env)
Restores the error handler
|
static Value |
restore_exception_handler(Env env)
Restore an exception handler
|
static boolean |
set_error_handler(Env env,
Callable fun,
int errorMask)
Sets an error handler
|
static Value |
set_exception_handler(Env env,
Callable fun)
Sets an exception handler
|
static Value |
trigger_error(Env env,
java.lang.String msg,
int code)
Triggers an error.
|
Value |
user_error(Env env,
java.lang.String msg,
int code)
Triggers an error.
|
addConstant, addConstant, addConstant, getConstMap, getLoadedExtensions
public static final int E_ERROR
public static final int E_WARNING
public static final int E_PARSE
public static final int E_NOTICE
public static final int E_CORE_ERROR
public static final int E_CORE_WARNING
public static final int E_COMPILE_ERROR
public static final int E_COMPILE_WARNING
public static final int E_USER_ERROR
public static final int E_USER_WARNING
public static final int E_USER_NOTICE
public static final int E_ALL
public static final int E_STRICT
public static final int E_RECOVERABLE_ERROR
public static final int E_DEPRECATED
public static final int E_USER_DEPRECATED
public static final int DEBUG_BACKTRACE_PROVIDE_OBJECT
public static final int DEBUG_BACKTRACE_IGNORE_ARGS
public IniDefinitions getIniDefinitions()
getIniDefinitions
in interface QuercusModule
getIniDefinitions
in class AbstractQuercusModule
public static ArrayValue debug_backtrace(Env env, int options, int limit)
public static ArrayValue debug_backtrace_exception(Env env, java.lang.Throwable e, int options)
public static boolean error_log(Env env, StringValue message, int type, StringValue destination, StringValue extraHeaders)
public static long error_reporting(Env env, Value levelV)
public static boolean restore_error_handler(Env env)
env
- the quercus environmentpublic static boolean set_error_handler(Env env, Callable fun, int errorMask)
env
- the quercus environmentfun
- the error handlercode
- errorMask error levelpublic static Value set_exception_handler(Env env, Callable fun)
env
- the quercus environmentfun
- the exception handlerpublic static Value restore_exception_handler(Env env)
env
- the quercus environmentpublic static Value trigger_error(Env env, java.lang.String msg, int code)
env
- the quercus environmentmsg
- the error messagecode
- the error level