gishur.core.math
Class MathNumberException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--gishur.core.math.MathNumberException
All Implemented Interfaces:
java.io.Serializable

public class MathNumberException
extends java.lang.RuntimeException

A Exception Class for mathematical exceptions.

Version:
1.0
Author:
Thomas Wolf
See Also:
Serialized Form

Field Summary
 int errorcode
          Errorcode
static int ILLEGAL_STATE
          Illegal internal state
 MathNumber n1
          MathNumbers objects
 MathNumber n2
          MathNumbers objects
static int NO_IMPLEMENT
          Operation not implemented
static int NO_OPERATION
          Operation with the given Class not supported
static int UNKNOWN
          Unknown exception
 
Constructor Summary
MathNumberException(int code, MathNumber n1)
          Constructs a MathNumberException
MathNumberException(int code, MathNumber n1, MathNumber n2)
          Constructs an MathNumberException.
 
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

errorcode

public int errorcode
Errorcode

n1

public MathNumber n1
MathNumbers objects

n2

public MathNumber n2
MathNumbers objects

UNKNOWN

public static final int UNKNOWN
Unknown exception

ILLEGAL_STATE

public static final int ILLEGAL_STATE
Illegal internal state

NO_IMPLEMENT

public static final int NO_IMPLEMENT
Operation not implemented

NO_OPERATION

public static final int NO_OPERATION
Operation with the given Class not supported
Constructor Detail

MathNumberException

public MathNumberException(int code,
                           MathNumber n1,
                           MathNumber n2)
Constructs an MathNumberException.
Parameters:
code - errorcode
n1,n2 - participating MathNumbers

MathNumberException

public MathNumberException(int code,
                           MathNumber n1)
Constructs a MathNumberException
Parameters:
code - errorcode
n1 - participating MathNumber