| java.lang.Object java.lang.Throwable java.lang.Exception java.io.IOException de.susebox.java.io.ExtIOException
Constructor Summary | |
public | ExtIOException(Throwable ex) This constructor should be used for wrapping another exception. | public | ExtIOException(Throwable ex, String msg) If one likes to add ones own information to an exception, this constructor is
the easiest way to do so. | public | ExtIOException(String fmt, Object[] args) This constructor takes a format string and its arguments. | public | ExtIOException(Throwable ex, String fmt, Object[] args) This is the most complex way to construct an ThrowableList -
Throwable.
An inner exception is accompanied by a format string and its arguments. |
_args | protected Object[] _args(Code) | | the parameters to be used when formatting the exception message
|
_isWrapper | protected boolean _isWrapper(Code) | | If true this is only a wrapper exception with the real one
being returned by
ExtIOException.nextThrowable , false for standalone,
nested or subsequent exceptions
|
_next | protected Throwable _next(Code) | | The wrapped, nested of next exception.
|
ExtIOException | public ExtIOException(Throwable ex)(Code) | | This constructor should be used for wrapping another exception. While reading
data an IOException may occur, but a certain interface requires a
java.sql.SQLException. Simply use:
try {
...
} catch (SQLException ex) {
throw new ExtIOException(ex);
}
Parameters: ex - the exception to wrap |
ExtIOException | public ExtIOException(Throwable ex, String msg)(Code) | | If one likes to add ones own information to an exception, this constructor is
the easiest way to do so. By using such an approach a exception trace with useful
additional informations (which file could be found, what username is unknown)
can be realized:
try {
...
} catch (SQLException ex) {
throw new ExtIOException(ex, "while connecting to " + url);
}
Parameters: ex - the inner exception Parameters: msg - exception message |
ExtIOException | public ExtIOException(String fmt, Object[] args)(Code) | | This constructor takes a format string and its arguments. The format string
must have a form that can be used by
java.text.MessageFormat methods.
That means:
java.text.Message.format(fmt, args)
is similar to
new MyException(fmt, args).getMessage();
Parameters: fmt - exception message Parameters: args - arguments for the given format string |
ExtIOException | public ExtIOException(Throwable ex, String fmt, Object[] args)(Code) | | This is the most complex way to construct an ThrowableList -
Throwable.
An inner exception is accompanied by a format string and its arguments.
Use this constructor in language-sensitive contexts or for formalized messages.
The meaning of the parameters is explained in the other constructors.
Parameters: ex - the inner exception Parameters: fmt - exception message Parameters: args - arguments for the given format string |
isWrapper | public boolean isWrapper()(Code) | | Check if this is only a throwable that wraps the real one. See
ThrowableList.isWrapper for details.
true if this is a wrapper throwable,false otherwise |
|
|