| java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException java.util.NoSuchElementException de.susebox.java.util.ExtNoSuchElementException
_args | protected Object[] _args(Code) | | the parameters to be used when formatting the throwable message
|
_next | protected Throwable _next(Code) | | The wrapped, nested of next throwable.
|
ExtNoSuchElementException | public ExtNoSuchElementException(String msg)(Code) | | This constructor takes a simple message string like ordinary Java
java.lang.Throwable classes. This is the most convenient form to
construct an ThrowableList throwable.
Parameters: msg - message for this Throwable instance |
ExtNoSuchElementException | public ExtNoSuchElementException(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
SQLException . Simply use:
try {
...
} catch (NullPointerException ex) {
throw new ExtNoSuchElementException(ex);
}
Parameters: ex - the exception to wrap |
ExtNoSuchElementException | public ExtNoSuchElementException(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 IOException(ex, "while connecting to " + url);
}
Parameters: ex - the inner throwable Parameters: msg - throwable message |
ExtNoSuchElementException | public ExtNoSuchElementException(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 - throwable message Parameters: args - arguments for the given format string |
ExtNoSuchElementException | public ExtNoSuchElementException(Throwable ex, String fmt, Object[] args)(Code) | | This is the most complex way to construct an ExceptionList -
Throwable.
An inner throwable 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 throwable Parameters: fmt - throwable 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 exception,false otherwise |
|
|