|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception org.apache.commons.nabla.core.NablaException
public class NablaException
This class is the base class for all specific exceptions thrown by the nabla classes.
When the nabla classes throw exceptions that are specific to the package, these exceptions are always subclasses of NablaException. When exceptions that are already covered by the standard java API should be thrown, like ArrayIndexOutOfBoundsException or IllegalArgumentException, these standard exceptions are thrown rather than the nabla specific ones.
Constructor Summary | |
---|---|
NablaException(String specifier,
Object... parts)
Simple constructor. |
Method Summary | |
---|---|
static String |
translate(String s)
Translate a string. |
static String |
translate(String specifier,
Object... parts)
Translate a message. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NablaException(String specifier, Object... parts)
specifier
- format specifier (to be translated)parts
- to insert in the format (no translation)Method Detail |
---|
public static String translate(String s)
s
- string to translate
public static String translate(String specifier, Object... parts)
specifier
- format specifier (to be translated)parts
- to insert in the format (no translation)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |