public class BitIndexOutOfBoundException extends java.lang.IndexOutOfBoundsException implements BitStorageException
BitField
is used which lies outside the current size
of that field.Constructor and Description |
---|
BitIndexOutOfBoundException(java.lang.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.
|
public BitIndexOutOfBoundException(java.lang.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()