|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.mcdermottroe.exemplar.Exception
com.mcdermottroe.exemplar.output.OutputException
public class OutputException
An exception that can be thrown in response to any error in the output phase of the program.
| Field Summary | |
|---|---|
private File |
file
A File which was involved in the OutputException. |
| Constructor Summary | |
|---|---|
OutputException()
OutputException without a description. |
|
OutputException(File f)
OutputException with an originating File. |
|
OutputException(String message)
OutputException with a description. |
|
OutputException(String message,
File f)
OutputException with a description and an originating File. |
|
OutputException(String message,
Throwable cause)
OutputException with a description and a reference to an exception which caused it. |
|
OutputException(String message,
Throwable cause,
File f)
OutputException with a description, a reference to an exception which caused it and an originating File. |
|
OutputException(Throwable cause)
OutputException with a reference to the exception that caused it. |
|
OutputException(Throwable cause,
File f)
OutputException with a reference to the exception that caused it and an originating File. |
|
| Method Summary | |
|---|---|
int |
compareTo(Exception other)
Implement Comparable.compareTo(Object). |
OutputException |
getCopy()
Creates a deep copy of the current object and returns it. |
File |
getFile()
Get the file associated with this exception. |
String |
toString()
Extend Exception.toString(). |
| Methods inherited from class com.mcdermottroe.exemplar.Exception |
|---|
copyStackTrace, equals, getBackTrace, hashCode |
| 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, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private final File file
File which was involved in the OutputException.
| Constructor Detail |
|---|
public OutputException()
public OutputException(String message)
message - The description of the exception.public OutputException(File f)
File.
f - The file involved in the OutputException.
public OutputException(String message,
File f)
File.
message - The description of the exception.f - The file involved in the OutputException.
public OutputException(String message,
Throwable cause)
message - The description of the exception.cause - The cause of the exception.
public OutputException(String message,
Throwable cause,
File f)
File.
message - The description of the exception.cause - The cause of the exception.f - The file involved in the OutputException.public OutputException(Throwable cause)
cause - The cause of the exception.
public OutputException(Throwable cause,
File f)
File.
cause - The cause of the exception.f - The File involved in the OutputException.| Method Detail |
|---|
public int compareTo(Exception other)
Comparable.compareTo(Object).
compareTo in interface Comparable<Exception>compareTo in class Exceptionother - The Exception to compare against.
Comparable.compareTo(Object).public OutputException getCopy()
public File getFile()
File object for the file associated with this
exception.public String toString()
Exception.toString().
toString in class ExceptionString representation of this OutputException.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||