Package org.ka2ddo.yaac.core
Class HelpTaggedIOException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.ka2ddo.yaac.core.HelpTaggedIOException
- All Implemented Interfaces:
Serializable
,HelpTaggedException
This exception is the same as java.io.IOException, except that it carries a
help tag so the error display code can provide additional documentation to the
user.
- Author:
- Andrew Pavlin, KA2DDO
- See Also:
-
Constructor Summary
ConstructorDescriptionHelpTaggedIOException
(String helpTag) Constructs anIOException
withnull
as its error detail message.HelpTaggedIOException
(String message, String helpTag) Constructs anIOException
with the specified detail message.HelpTaggedIOException
(String message, Throwable cause, String helpTag) Constructs anIOException
with the specified detail message and cause.HelpTaggedIOException
(Throwable cause, String helpTag) Constructs anIOException
with the specified cause and a detail message of(cause==null ? null : cause.toString())
(which typically contains the class and detail message ofcause
). -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
HelpTaggedIOException
Constructs anIOException
withnull
as its error detail message.- Parameters:
helpTag
- String identifying the JavaHelp tag for explaining this exception
-
HelpTaggedIOException
Constructs anIOException
with the specified cause and a detail message of(cause==null ? null : cause.toString())
(which typically contains the class and detail message ofcause
). This constructor is useful for IO exceptions that are little more than wrappers for other throwables.- Parameters:
cause
- The cause (which is saved for later retrieval by theThrowable.getCause()
method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)helpTag
- String identifying the JavaHelp tag for explaining this exception
-
HelpTaggedIOException
Constructs anIOException
with the specified detail message.- Parameters:
message
- The detail message (which is saved for later retrieval by theThrowable.getMessage()
method)helpTag
- String identifying the JavaHelp tag for explaining this exception
-
HelpTaggedIOException
Constructs anIOException
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 theThrowable.getMessage()
method)cause
- The cause (which is saved for later retrieval by theThrowable.getCause()
method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)helpTag
- String identifying the JavaHelp tag for explaining this exception
-
-
Method Details
-
getHelpTag
Get the help tag for this exception.- Specified by:
getHelpTag
in interfaceHelpTaggedException
- Returns:
- help tag String
-
toString
Returns a short description of this Exception. The result is the concatenation of:- the name of the superclass of this exception object
- ": " (a colon and a space)
- the result of invoking this object's
Throwable.getLocalizedMessage()
method
getLocalizedMessage
returnsnull
, then just the class name is returned.
-