package com.srbenoit.sparsearray;
/**
* An exception thrown by sparse arrays when invalid operations are attempted.
*/
public final class SparseArrayException extends RuntimeException {
/** version number for serialization */
private static final long serialVersionUID = -3949534910942884478L;
/**
* Constructs a new SparseArrayException
with null
as its detail
* message.
*/
public SparseArrayException() {
super();
}
/**
* Constructs a new SparseArrayException
with the specified detail message.
*
* @param message the detail message
*/
public SparseArrayException(final String message) {
super(message);
}
/**
* Constructs a new SparseArrayException
with the specified detail message and
* cause.
*
*
Note that the detail message associated with cause
is not
* automatically incorporated in this runtime exception's detail message.
*
* @param message the detail message
* @param cause the cause
*/
public SparseArrayException(final String message, final Throwable cause) {
super(message, cause);
}
/**
* Constructs a new SparseArrayException
with the specified cause and a detail
* message of (cause==null ? null : cause.toString())
(which typically contains the
* class and detail message of cause
).
*
* @param cause the cause
*/
public SparseArrayException(final Throwable cause) {
super(cause);
}
}