Evaluating Software Design Patterns
— the "Gang of Four" patterns implemented in Java 6

dk.rode.thesis.templatemethod
Class SequenceValueException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by dk.rode.thesis.templatemethod.SequenceValueException
All Implemented Interfaces:
Serializable

public class SequenceValueException
extends RuntimeException

A sequence value exception is thrown by a sequence template in case of value related errors, such as initialisation error, a next value cannot be delivered, or if the sequence is closed.

Implementation notes:
This exception type is declared as a runtime exception to maintain the semantics of the Sequence interface, e.g. sequence methods such as Sequence.next() cannot throw checked exceptions.

Author:
Gunni Rode / rode.dk
See Also:
Serialized Form

Field Summary
(package private) static long serialVersionUID
          Serial version id.
 
Constructor Summary
SequenceValueException()
          No-arg constructor.
SequenceValueException(String message)
          Constructor.
SequenceValueException(String message, Throwable cause)
          Constructor.
SequenceValueException(Throwable cause)
          Constructor.
 
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
 

Field Detail

serialVersionUID

static final long serialVersionUID
Serial version id.

See Also:
Constant Field Values
Constructor Detail

SequenceValueException

public SequenceValueException()
No-arg constructor.


SequenceValueException

public SequenceValueException(String message)
Constructor.

Parameters:
message - The detail message; can be null.

SequenceValueException

public SequenceValueException(String message,
                              Throwable cause)
Constructor.

Parameters:
message - The detail message; can be null.
cause - The cause of this exception; can be null.

SequenceValueException

public SequenceValueException(Throwable cause)
Constructor.

Parameters:
cause - The cause of this exception; can be null.

Gunni Rode / rode.dk

Feel free to use and/or modify the Java 6 source code developed for this thesis AT YOUR OWN RISK, but note that the source code comes WITHOUT ANY — and I do mean WITHOUT ANY — form of warranty WHAT SO EVER!

The original thesis and source code are available at rode.dk/thesis.