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

Field Summary
 int errorcode
          Errorcode
static int METHOD_ERROR
          Error while running the algorithm method.
static int METHOD_NOT_FOUND
          No proper algorithm method was found.
static int UNKNOWN
          Unknown algorithm exception
 
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
 

Field Detail

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
Constructor Detail

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 - errorcode
message - string with errormessage
Method Detail

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