edu.columbia.surge
Class InvalidPathException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--edu.columbia.surge.InvalidPathException

public class InvalidPathException
extends java.lang.Exception

This exception is thrown when users feed in an invalid path name into any method that needs to process path names.

See Also:
Serialized Form

Constructor Summary
InvalidPathException()
          Constructs a new instance of InvalidPathException.
InvalidPathException(java.lang.String[] pathName)
          Constructs a new instance of InvalidPathException with a given pathName.
 
Method Summary
 java.lang.String toString()
          A method to state the error message when this exception is thrown.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InvalidPathException

public InvalidPathException()
Constructs a new instance of InvalidPathException. All fields are set to null.

InvalidPathException

public InvalidPathException(java.lang.String[] pathName)
Constructs a new instance of InvalidPathException with a given pathName.
Parameters:
pathName - the pathName to be thrown if it is invalid, specified by a string array of path names
Method Detail

toString

public java.lang.String toString()
A method to state the error message when this exception is thrown.
Returns:
an error message for this exception
Overrides:
toString in class java.lang.Throwable