edu.unh.sdb.common
Class BoundsError
java.lang.Object
edu.unh.sdb.common.SDBError
edu.unh.sdb.common.BoundsError
public class BoundsError
- extends SDBError
This error is used whenever there is some kind of bounds violation.
For example, if a DataSource is given an IndexSpaceID that is outside of its
outer bounds, this error could be generated. Similarly, a call to the
setCoord() method of ISIterator might generate this exception.
In cases where it would be appropriate to create either an
IllegalArgumentError or BoundsError, we should
use BoundsError, since it is more specific.
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.
Constructor Summary |
BoundsError(int errorLevel,
java.lang.String message)
Create an error with the specified error level and message. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BoundsError
public BoundsError(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.