|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.quercus.module.AbstractQuercusModule
com.caucho.quercus.lib.ErrorModule
public class ErrorModule
PHP error handling.
Field Summary | |
---|---|
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_ERROR
|
static int |
E_NOTICE
|
static int |
E_PARSE
|
static int |
E_RECOVERABLE_ERROR
|
static int |
E_STRICT
|
static int |
E_USER_ERROR
|
static int |
E_USER_NOTICE
|
static int |
E_USER_WARNING
|
static int |
E_WARNING
|
Fields inherited from class com.caucho.quercus.module.AbstractQuercusModule |
---|
PHP_INI_ALL, PHP_INI_PERDIR, PHP_INI_SYSTEM, PHP_INI_USER |
Constructor Summary | |
---|---|
ErrorModule()
|
Method Summary | |
---|---|
static ArrayValue |
debug_backtrace_exception(Env env,
java.lang.Throwable e,
int options)
|
static ArrayValue |
debug_backtrace(Env env,
int options)
Produces a backtrace |
static Value |
die(Env env,
java.lang.String msg)
Exits |
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. |
Methods inherited from class com.caucho.quercus.module.AbstractQuercusModule |
---|
addConstant, addConstant, addConstant, getConstMap, getLoadedExtensions |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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 DEBUG_BACKTRACE_PROVIDE_OBJECT
public static final int DEBUG_BACKTRACE_IGNORE_ARGS
Constructor Detail |
---|
public ErrorModule()
Method Detail |
---|
public IniDefinitions getIniDefinitions()
getIniDefinitions
in interface QuercusModule
getIniDefinitions
in class AbstractQuercusModule
public static Value die(Env env, java.lang.String msg)
public static ArrayValue debug_backtrace(Env env, int options)
public static ArrayValue debug_backtrace_exception(Env env, java.lang.Throwable e, int options)
public Value exit(Env env, Value msg)
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 levelpublic Value user_error(Env env, java.lang.String msg, int code)
env
- the quercus environmentmsg
- the error messagecode
- the error level
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |