|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.spaceroots.mantissa.MantissaException
This class is the base class for all specific exceptions thrown by the mantissa classes.
When the mantissa classes throw exceptions that are specific to the package, these exceptions are always subclasses of MantissaException. 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 mantissa specific ones.
| Constructor Summary | |
MantissaException()
Simple constructor. |
|
MantissaException(String message)
Simple constructor. |
|
MantissaException(String specifier,
String[] parts)
Simple constructor. |
|
MantissaException(String specifier,
String[] parts,
Throwable cause)
Simple constructor. |
|
MantissaException(String message,
Throwable cause)
Simple constructor. |
|
MantissaException(Throwable cause)
Simple constructor. |
|
| Method Summary | |
static String |
translate(String s)
Translate a string. |
static String |
translate(String specifier,
String[] 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 MantissaException()
public MantissaException(String message)
message - message to translate
public MantissaException(String specifier,
String[] parts)
specifier - format specifier (to be translated)parts - to insert in the format (no translation)public MantissaException(Throwable cause)
cause - cause of this exception
public MantissaException(String message,
Throwable cause)
message - message to translatecause - cause of this exception
public MantissaException(String specifier,
String[] parts,
Throwable cause)
specifier - format specifier (to be translated)parts - to insert in the format (no translation)cause - cause of this exception| Method Detail |
public static String translate(String s)
s - string to translate
public static String translate(String specifier,
String[] 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 | |||||||||