public class HelpTaggedIOException extends java.io.IOException implements HelpTaggedException
Constructor and Description |
---|
HelpTaggedIOException(java.lang.String helpTag)
Constructs an
IOException with null
as its error detail message. |
HelpTaggedIOException(java.lang.String message,
java.lang.String helpTag)
Constructs an
IOException with the specified detail message. |
HelpTaggedIOException(java.lang.String message,
java.lang.Throwable cause,
java.lang.String helpTag)
Constructs an
IOException with the specified detail message
and cause. |
HelpTaggedIOException(java.lang.Throwable cause,
java.lang.String helpTag)
Constructs an
IOException with the specified cause and a
detail message of (cause==null ? null : cause.toString())
(which typically contains the class and detail message of cause ). |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getHelpTag()
Get the help tag for this exception.
|
java.lang.String |
toString()
Returns a short description of this Exception.
|
public HelpTaggedIOException(java.lang.String helpTag)
IOException
with null
as its error detail message.helpTag
- String identifying the JavaHelp tag for explaining this exceptionpublic HelpTaggedIOException(java.lang.Throwable cause, java.lang.String helpTag)
IOException
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 IO 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.)helpTag
- String identifying the JavaHelp tag for explaining this exceptionpublic HelpTaggedIOException(java.lang.String message, java.lang.String helpTag)
IOException
with the specified detail message.message
- The detail message (which is saved for later retrieval
by the Throwable.getMessage()
method)helpTag
- String identifying the JavaHelp tag for explaining this exceptionpublic HelpTaggedIOException(java.lang.String message, java.lang.Throwable cause, java.lang.String helpTag)
IOException
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.)helpTag
- String identifying the JavaHelp tag for explaining this exceptionpublic java.lang.String getHelpTag()
getHelpTag
in interface HelpTaggedException
public final java.lang.String toString()
Throwable.getLocalizedMessage()
method
getLocalizedMessage
returns null
, then just
the class name is returned.toString
in class java.lang.Throwable