public class PDOError
extends java.lang.Object
Constructor and Description |
---|
PDOError() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear the error if there is one.
|
void |
error(Env env,
java.lang.Throwable exception)
Save an error for subsequent calls to
#errorCode and #errorInfo ,
and depending on the value of setErrmode(com.caucho.quercus.env.Env, int)
show nothing, show a warning, or throw an exception. |
int |
getErrmode() |
java.lang.String |
getErrorCode() |
ArrayValue |
getErrorInfo() |
boolean |
isError() |
void |
notice(Env env,
java.lang.String message)
Show a notice and return a "HY000" general error for subsequent calls to
#errorCode and #errorInfo . |
boolean |
setErrmode(Env env,
int value)
Set's the error mode.
|
void |
unsupportedAttribute(Env env,
int attribute) |
void |
unsupportedAttributeValue(Env env,
java.lang.Object value) |
void |
warning(Env env,
java.lang.String message)
Show a warning and return a "HY000" general error for subsequent calls to
#errorCode and #errorInfo . |
public void clear()
public void error(Env env, java.lang.Throwable exception)
#errorCode
and #errorInfo
,
and depending on the value of setErrmode(com.caucho.quercus.env.Env, int)
show nothing, show a warning, or throw an exception.public java.lang.String getErrorCode()
public ArrayValue getErrorInfo()
public int getErrmode()
public boolean isError()
public void notice(Env env, java.lang.String message)
#errorCode
and #errorInfo
.public boolean setErrmode(Env env, int value)
ERRMODE_SILENT
ERRMODE_WARNING
ERRMODE_EXCEPTION
public void warning(Env env, java.lang.String message)
#errorCode
and #errorInfo
.public void unsupportedAttribute(Env env, int attribute)
public void unsupportedAttributeValue(Env env, java.lang.Object value)