public class SDBError
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
AlwaysThrow |
protected SDBException |
exceptionObject |
static int |
Fatal |
static int |
NeverThrow |
static int |
Recoverable |
protected int |
throwerIndex |
static int |
ThrowFatalOnly |
static int |
Warning |
Modifier | Constructor and Description |
---|---|
protected |
SDBError(int errorLevel,
SDBException sdbex)
Constructor sets the error level for a particular error instance.
|
|
SDBError(int errorLevel,
java.lang.String message)
Constructor sets the error level for a particular error instance.
|
Modifier and Type | Method and Description |
---|---|
static int |
getErrorReportingLevel() |
protected void |
logError(SDBException sdbex)
Log the error message.
|
static void |
setErrorReportingLevel(int level)
The Error Reporting Level determines when to raise an exception
for an error.
|
protected boolean |
shouldThrowException()
Returns true if this instance of SDBError should throw an
exception.
|
public static final int AlwaysThrow
public static final int ThrowFatalOnly
public static final int NeverThrow
public static final int Fatal
public static final int Recoverable
public static final int Warning
protected SDBException exceptionObject
protected int throwerIndex
public SDBError(int errorLevel, java.lang.String message)
protected SDBError(int errorLevel, SDBException sdbex)
public static void setErrorReportingLevel(int level)
public static int getErrorReportingLevel()
protected boolean shouldThrowException()
protected void logError(SDBException sdbex)