de.jstacs.data
Class WrongLengthException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by de.jstacs.data.WrongLengthException
All Implemented Interfaces:
Serializable

public final class WrongLengthException
extends Exception

A WrongLengthException is thrown if a given (sub)sequence length is not correct.

Author:
Jan Grau
See Also:
Serialized Form

Constructor Summary
WrongLengthException(int length)
          Simple Constructor.
WrongLengthException(String message)
          Creates a new WrongLengthException with your own message.
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WrongLengthException

public WrongLengthException(int length)
Simple Constructor.

Parameters:
length - the length that was not supported

WrongLengthException

public WrongLengthException(String message)
Creates a new WrongLengthException with your own message.

Parameters:
message - the message