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

dk.rode.thesis.memento
Class MemorizableException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by dk.rode.thesis.memento.MemorizableException
All Implemented Interfaces:
Serializable

public class MemorizableException
extends Exception

A memorizable exception is thrown in case a memorizable sequence cannot be updated by a given sequence memento.

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

Field Summary
(package private) static long serialVersionUID
          Serial version id.
 
Constructor Summary
MemorizableException()
          No-arg constructor.
MemorizableException(SequenceMemento<?> memento)
          Constructor.
MemorizableException(String message)
          Constructor.
MemorizableException(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

MemorizableException

public MemorizableException()
No-arg constructor.


MemorizableException

public MemorizableException(SequenceMemento<?> memento)
Constructor.

Parameters:
memento - The faulting memento; cannot be null.
Throws:
NullPointerException - If memento is null.

MemorizableException

public MemorizableException(String message)
Constructor.

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

MemorizableException

public MemorizableException(Throwable cause)
Constructor.

Parameters:
cause - The cause; 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.