|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectThrowable
Exception
java.io.IOException
comp202.fall2007.a5.util.IncorrectFileExtensionException
public class IncorrectFileExtensionException
Signals that a method has attempted to read a file with an incorrect file extension.
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 |
---|
public IncorrectFileExtensionException()
Constructs an IncorrectFileExtensionException
with
null
as its detail message.
public IncorrectFileExtensionException(String message)
Constructs an IncorrectFileExtensionException
with the
specified detail message.
message
- The detail message (which is saved for later retrieval by the
Throwable.getMessage()
method)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.
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.)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.
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.)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |