|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjmathlib.core.interpreter.Errors
public class Errors
Class used to read and display error strings from a resource bundle
| Constructor Summary | |
|---|---|
Errors()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
getErrorText(int errorCode)
returns the localised error string for a specific code |
static java.lang.String |
getErrorText(int errorCode,
java.lang.Object[] params)
returns the localised error string for a specific code, containing extra data fields |
static void |
throwMathLibException(int errorCode)
throws an exception with a localised error string |
static void |
throwMathLibException(int errorCode,
java.lang.Object[] params)
throws an exception with a localised error string, containing extra data fields |
static void |
throwMathLibException(java.lang.String errorMessage)
Throws an exception with an error string. |
static void |
throwParserException(java.lang.String errorMessage)
Throws an exception with an error string. |
static void |
throwUsageException(java.lang.String errorMessage)
Throws an exception with an error string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Errors()
| Method Detail |
|---|
public static java.lang.String getErrorText(int errorCode)
errorCode - = the code for the error string
public static void throwMathLibException(int errorCode)
errorCode - = the code for the error stringpublic static void throwMathLibException(java.lang.String errorMessage)
errorCode - = the error messagepublic static void throwParserException(java.lang.String errorMessage)
errorMessage - = the parser errorpublic static void throwUsageException(java.lang.String errorMessage)
errorMessage - = the parser error
public static java.lang.String getErrorText(int errorCode,
java.lang.Object[] params)
errorCode - = the code for the error stringparams - = the extra data
public static void throwMathLibException(int errorCode,
java.lang.Object[] params)
errorCode - = the code for the error stringparams - = the extra data
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||