edu.unh.sdb.common
Class InternalFaultError

java.lang.Object
  extended by edu.unh.sdb.common.SDBError
      extended by edu.unh.sdb.common.InternalFaultError

public class InternalFaultError
extends SDBError

Used whenever something happens that should be impossible occurrs. For example, if a data member has an illegal value, then this error should be created. In theory, this should never happen. And even in practice, if we check constructor and method arguments carefully, we would generate an IllegalArgumentError earlier, rather than an InternalFaultError later on. Creating an error will cause the message argument to be logged, and an exception to be raised, if appropriate. This behavior is governed by the error level given to the constructor, and by the error reporting level maintained in the SDBError class. Invoking the constructor is sufficient to log the error. There is no need to save a reference to the error object.


Field Summary
 
Fields inherited from class edu.unh.sdb.common.SDBError
AlwaysThrow, exceptionObject, Fatal, NeverThrow, Recoverable, throwerIndex, ThrowFatalOnly, Warning
 
Constructor Summary
InternalFaultError(int errorLevel, java.lang.String message)
          Create an error with the specified error level and message.
 
Method Summary
 
Methods inherited from class edu.unh.sdb.common.SDBError
getErrorReportingLevel, logError, setErrorReportingLevel, shouldThrowException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InternalFaultError

public InternalFaultError(int errorLevel,
                          java.lang.String message)
Create an error with the specified error level and message. The error level can be either SDBError.Fatal or SDBError.Recoverable.