|
||||||||||
| 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 StringValue |
ARGS
|
static StringValue |
CLASS
|
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
|
static StringValue |
FILE
|
static StringValue |
FUNCTION
|
static StringValue |
LINE
|
static StringValue |
TYPE
|
| 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 Value |
debug_backtrace(Env env)
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 StringValue ARGS
public static final StringValue CLASS
public static final StringValue FILE
public static final StringValue FUNCTION
public static final StringValue LINE
public static final StringValue TYPE
| Constructor Detail |
|---|
public ErrorModule()
| Method Detail |
|---|
public IniDefinitions getIniDefinitions()
getIniDefinitions in interface QuercusModulegetIniDefinitions in class AbstractQuercusModule
public static Value die(Env env,
java.lang.String msg)
public static Value debug_backtrace(Env env)
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 environment
public static boolean set_error_handler(Env env,
Callable fun,
int errorMask)
env - the quercus environmentfun - the error handlercode - errorMask error level
public 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 environment
public static Value trigger_error(Env env,
java.lang.String msg,
int code)
env - the quercus environmentmsg - the error messagecode - the error level
public 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 | |||||||||