public class BitIndexOutOfBoundException extends IndexOutOfBoundsException implements BitStorageException
BitField
is used which lies outside the current size
of that field.Constructor and Description |
---|
BitIndexOutOfBoundException(String message,
BitField source,
long index)
Creates a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
long |
getIndex()
Returns the invalid bit index.
|
BitField |
getSource()
Returns the bit field where the exception occurred.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public BitIndexOutOfBoundException(String message, BitField source, long index)
message
- the error messagesource
- the bit field throwing this exceptionindex
- the invalid bit indexpublic BitField getSource()
BitStorageException
getSource
in interface BitStorageException
public long getIndex()