gishur.core.algorithms
Class AlgorithmException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.lang.RuntimeException
|
+--gishur.core.algorithms.AlgorithmException
- All Implemented Interfaces:
- java.io.Serializable
- public class AlgorithmException
- extends java.lang.RuntimeException
Exceptions wile loading/running algorithms.
- Version:
- 1.0
- Author:
- Thomas Wolf
- See Also:
- Serialized Form
Constructor Summary |
|
AlgorithmException(int code)
Constructor for AlgorithmExceptions. |
protected |
AlgorithmException(int code,
java.lang.String message)
String constructor for AlgorithmExceptions. |
Method Summary |
protected static java.lang.String |
getErrorString(int code)
Returns the printed error string for the given Error code. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
UNKNOWN
public static final int UNKNOWN
- Unknown algorithm exception
METHOD_NOT_FOUND
public static final int METHOD_NOT_FOUND
- No proper algorithm method was found.
METHOD_ERROR
public static final int METHOD_ERROR
- Error while running the algorithm method.
errorcode
public int errorcode
- Errorcode
AlgorithmException
public AlgorithmException(int code)
- Constructor for AlgorithmExceptions.
- Parameters:
code
- errorcode
AlgorithmException
protected AlgorithmException(int code,
java.lang.String message)
- String constructor for AlgorithmExceptions.
- Parameters:
code
- errorcodemessage
- string with errormessage
getErrorString
protected static java.lang.String getErrorString(int code)
- Returns the printed error string for the given Error code.
- Parameters:
code
- Errorcode- Returns:
- error string