comp202.fall2007.a5.util
Class IncorrectFileExtensionException

Object
  extended by Throwable
      extended by Exception
          extended by java.io.IOException
              extended by comp202.fall2007.a5.util.IncorrectFileExtensionException
All Implemented Interfaces:
java.io.Serializable

public class IncorrectFileExtensionException
extends java.io.IOException

Signals that a method has attempted to read a file with an incorrect file extension.

See Also:
Serialized Form

Constructor Summary
IncorrectFileExtensionException()
           Constructs an IncorrectFileExtensionException with null as its detail message.
IncorrectFileExtensionException(String message)
           Constructs an IncorrectFileExtensionException with the specified detail message.
IncorrectFileExtensionException(String message, Throwable cause)
           Constructs an IncorrectFileExtensionException with the specified detail message and cause.
IncorrectFileExtensionException(Throwable cause)
           Constructs an IncorrectFileNameException with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause).
 
Method Summary
 
Methods inherited from class Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IncorrectFileExtensionException

public IncorrectFileExtensionException()

Constructs an IncorrectFileExtensionException with null as its detail message.


IncorrectFileExtensionException

public IncorrectFileExtensionException(String message)

Constructs an IncorrectFileExtensionException with the specified detail message.

Parameters:
message - The detail message (which is saved for later retrieval by the Throwable.getMessage() method)

IncorrectFileExtensionException

public IncorrectFileExtensionException(Throwable cause)

Constructs an IncorrectFileNameException with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause). This constructor is useful for incorrect file extension exceptions that are little more than wrappers for other throwables.

Parameters:
cause - The cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)

IncorrectFileExtensionException

public IncorrectFileExtensionException(String message,
                                       Throwable cause)

Constructs an IncorrectFileExtensionException with the specified detail message and cause.

Note that the detail message associated with cause is not automatically incorporated into this exception's detail message.

Parameters:
message - The detail message (which is saved for later retrieval by the Throwable.getMessage() method)
cause - The cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)