gishur.core.geom
Class GeomException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--gishur.core.geom.GeomException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
IntersectionException

public class GeomException
extends java.lang.RuntimeException

A generic geometric Exception.

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

Field Summary
static int ARGUMENT_OUT_OF_RANGE
          Argument is out of Range.
 int errorcode
          Errorcode
static int ILLEGAL_ARGUMENT
          Illegal argument.
static int ILLEGAL_ARGUMENT_TYPE
          Illegal argument type.
static int MODIFY_IMMUTABLE_OBJECT
          Tried to modify an immutable object.
static int NULL_ARGUMENT
          Illegal null argument.
static int POINT_ON_CURVE_REQUIRED
          The point does not lie on the curve as required.
static int PRECISION_ERROR
          The result is too unprecise.
static int UNKNOWN
          Unknown GeomException
 
Constructor Summary
  GeomException(int code)
          Constructor for GeomExceptions.
protected GeomException(int code, java.lang.String message)
          String constructor for GeomExceptions.
 
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 GeomException

NULL_ARGUMENT

public static final int NULL_ARGUMENT
Illegal null argument.

ILLEGAL_ARGUMENT

public static final int ILLEGAL_ARGUMENT
Illegal argument.

ILLEGAL_ARGUMENT_TYPE

public static final int ILLEGAL_ARGUMENT_TYPE
Illegal argument type.

MODIFY_IMMUTABLE_OBJECT

public static final int MODIFY_IMMUTABLE_OBJECT
Tried to modify an immutable object.

ARGUMENT_OUT_OF_RANGE

public static final int ARGUMENT_OUT_OF_RANGE
Argument is out of Range.

PRECISION_ERROR

public static final int PRECISION_ERROR
The result is too unprecise.

POINT_ON_CURVE_REQUIRED

public static final int POINT_ON_CURVE_REQUIRED
The point does not lie on the curve as required.

errorcode

public int errorcode
Errorcode
Constructor Detail

GeomException

public GeomException(int code)
Constructor for GeomExceptions.
Parameters:
code - errorcode

GeomException

protected GeomException(int code,
                        java.lang.String message)
String constructor for GeomExceptions.
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