Class PuzzleException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by PuzzleException
All Implemented Interfaces:
java.io.Serializable

public class PuzzleException
extends java.lang.Exception

Signals an error in loading or solving the puzzle. A message is provided.

Version:
2005-10-30, JDK 1.5.0.5, Eclipse 3.1.0, Windows XP, CS 340, Fall 2005, Instructor: Pat Troy, TA: Nitin Jindal
Author:
Michael Leonhard (mleonhar)
See Also:
Serialized Form

Field Summary
private static long serialVersionUID
           
 
Constructor Summary
PuzzleException(java.lang.String message)
          Constructor: saves the provided message
 
Method Summary
 java.lang.String toString()
          Returns the message describing the exception
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

PuzzleException

public PuzzleException(java.lang.String message)
Constructor: saves the provided message

Parameters:
message - a string describing the exceptional state
Method Detail

toString

public java.lang.String toString()
Returns the message describing the exception

Overrides:
toString in class java.lang.Throwable
Returns:
the message describing the exception