gishur.core.geom
Class IntersectionException

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

public class IntersectionException
extends GeomException

Exception thrown by intersection methods.

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

Field Summary
static int GENERAL
          General intersection exception
static int NO_MODE_SUPPORT
          Intersection mode not supported
static int NO_SUPPORT
          Intersection not supported
 java.lang.Object o1
          intersecting objects
 java.lang.Object o2
          intersecting objects
 
Fields inherited from class gishur.core.geom.GeomException
ARGUMENT_OUT_OF_RANGE, errorcode, ILLEGAL_ARGUMENT, ILLEGAL_ARGUMENT_TYPE, MODIFY_IMMUTABLE_OBJECT, NULL_ARGUMENT, POINT_ON_CURVE_REQUIRED, PRECISION_ERROR, UNKNOWN
 
Constructor Summary
IntersectionException(int code, java.lang.Object o1, java.lang.Object o2)
          Constructs an Intersection Exception
IntersectionException(java.lang.Object o1, java.lang.Object o2)
          Constructs a general Intersection Exception
 
Method Summary
protected static java.lang.String getErrorString(int code, java.lang.Object o1, java.lang.Object o2)
          Returns the printed error string for the given Error code and the two objects.
 
Methods inherited from class gishur.core.geom.GeomException
getErrorString
 
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

o1

public java.lang.Object o1
intersecting objects

o2

public java.lang.Object o2
intersecting objects

GENERAL

public static final int GENERAL
General intersection exception

NO_MODE_SUPPORT

public static final int NO_MODE_SUPPORT
Intersection mode not supported

NO_SUPPORT

public static final int NO_SUPPORT
Intersection not supported
Constructor Detail

IntersectionException

public IntersectionException(int code,
                             java.lang.Object o1,
                             java.lang.Object o2)
Constructs an Intersection Exception
Parameters:
code - errorcode
o1,o2 - participating objects

IntersectionException

public IntersectionException(java.lang.Object o1,
                             java.lang.Object o2)
Constructs a general Intersection Exception
Parameters:
o1,o2 - participating objects
Method Detail

getErrorString

protected static java.lang.String getErrorString(int code,
                                                 java.lang.Object o1,
                                                 java.lang.Object o2)
Returns the printed error string for the given Error code and the two objects.
Parameters:
code - Errorcode
o1 - first object
o2 - second object
Returns:
error string