| java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException java.lang.IllegalArgumentException de.susebox.java.lang.ExtIllegalArgumentException
_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.
|
ExtIllegalArgumentException | public ExtIllegalArgumentException(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 |
ExtIllegalArgumentException | public ExtIllegalArgumentException(Throwable trowable)(Code) | | This constructor should be used for wrapping another
java.lang.Throwable .
While reading data an IOException may occur, but a certain interface
requires a SQLException . Simply use:
try {
...
} catch (NullPointerException ex) {
throw new ExtIllegalArgumentException(ex);
}
Parameters: trowable - the Throwable to wrap |
ExtIllegalArgumentException | public ExtIllegalArgumentException(Throwable throwable, String msg)(Code) | | If one likes to add ones own information to a
java.lang.Throwable ,
this constructor is the easiest way to do so. By using such an approach a
Throwable trace with useful additional informations (which file
could not be found, what username is unknown) can be realized:
try {
...
} catch (SQLException ex) {
throw new IOException(ex, "while connecting to " + url);
}
Parameters: throwable - the inner throwable Parameters: msg - throwable message |
ExtIllegalArgumentException | public ExtIllegalArgumentException(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 |
ExtIllegalArgumentException | public ExtIllegalArgumentException(Throwable throwable, String fmt, Object[] args)(Code) | | This is the most complex way to construct an ThrowableList -
Throwable. An inner
java.lang.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: throwable - 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 |
|
|