org.jdelaunay.delaunay.error
Class DelaunayError

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.jdelaunay.delaunay.error.DelaunayError
All Implemented Interfaces:
Serializable

public class DelaunayError
extends Exception

The exception that is used to describe the kind of errors that can happen when building or using a ConstrainedMesh or its elements in this library.

Author:
Jean-Yves Martin, Erwan Bocher, Alexis Guéganno
See Also:
Serialized Form

Field Summary
static int DELAUNAY_ERROR_CAN_NOT_CONNECT_POINT
          Failed at connecting the point to the mesh.
static int DELAUNAY_ERROR_CAN_NOT_SPLIT_BP
          Failed at splitting a boundary part.
static int DELAUNAY_ERROR_ERROR_POINT_XYZ
           
static int DELAUNAY_ERROR_GENERATED
          The mesh has been generated, and it shouldn't.
static int DELAUNAY_ERROR_INCORRECT_TOPOLOGY
          The topology is wrong.
static int DELAUNAY_ERROR_INTERNAL_ERROR
          Inner error.
static int DELAUNAY_ERROR_INVALID_CALL
          Bad call to a method
static int DELAUNAY_ERROR_MESH_ALREADY_EXISTS
          Failed at splitting a boundary part.
static int DELAUNAY_ERROR_MISC
          Other error
static int DELAUNAY_ERROR_NO_ERROR
          An error has been thrown, but it shouldn't happen...
static int DELAUNAY_ERROR_NO_MESH
          There is no mesh to work with.
static int DELAUNAY_ERROR_NON_INSERTED_POINT
          The point has not been inserted during the triangulation.
static int DELAUNAY_ERROR_NOT_ENOUGH_POINTS_FOUND
          We haven't found enough points to process our operation.
static int DELAUNAY_ERROR_NOT_GENERATED
          The mesh has not been generated, and it should have.
static int DELAUNAY_ERROR_OUTSIDE_TRIANGLE
           
static int DELAUNAY_ERROR_POINT_NOT_FOUND
          can't find the asked point.
static int DELAUNAY_ERROR_PROXIMITY
          The points are too close.
static int DELAUNAY_ERROR_REMOVING_EDGE
          Failed at removing an edge.
 
Constructor Summary
DelaunayError()
          Default constructor, the associated message is DELAUNAY_INTERNAL_ERROR
DelaunayError(int errorCode)
          DelaunayError created with the wanted error code.
DelaunayError(int errorCode, String s)
          DelaunayError created with both a custom message and a given error code.
DelaunayError(String s)
          DelaunayError instanciated with a custom message.
 
Method Summary
 String getMessage()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DELAUNAY_ERROR_NO_ERROR

public static final int DELAUNAY_ERROR_NO_ERROR
An error has been thrown, but it shouldn't happen...

See Also:
Constant Field Values

DELAUNAY_ERROR_NO_MESH

public static final int DELAUNAY_ERROR_NO_MESH
There is no mesh to work with.

See Also:
Constant Field Values

DELAUNAY_ERROR_NOT_GENERATED

public static final int DELAUNAY_ERROR_NOT_GENERATED
The mesh has not been generated, and it should have.

See Also:
Constant Field Values

DELAUNAY_ERROR_GENERATED

public static final int DELAUNAY_ERROR_GENERATED
The mesh has been generated, and it shouldn't.

See Also:
Constant Field Values

DELAUNAY_ERROR_NOT_ENOUGH_POINTS_FOUND

public static final int DELAUNAY_ERROR_NOT_ENOUGH_POINTS_FOUND
We haven't found enough points to process our operation.

See Also:
Constant Field Values

DELAUNAY_ERROR_PROXIMITY

public static final int DELAUNAY_ERROR_PROXIMITY
The points are too close.

See Also:
Constant Field Values

DELAUNAY_ERROR_POINT_NOT_FOUND

public static final int DELAUNAY_ERROR_POINT_NOT_FOUND
can't find the asked point.

See Also:
Constant Field Values

DELAUNAY_ERROR_CAN_NOT_CONNECT_POINT

public static final int DELAUNAY_ERROR_CAN_NOT_CONNECT_POINT
Failed at connecting the point to the mesh.

See Also:
Constant Field Values

DELAUNAY_ERROR_CAN_NOT_SPLIT_BP

public static final int DELAUNAY_ERROR_CAN_NOT_SPLIT_BP
Failed at splitting a boundary part.

See Also:
Constant Field Values

DELAUNAY_ERROR_MESH_ALREADY_EXISTS

public static final int DELAUNAY_ERROR_MESH_ALREADY_EXISTS
Failed at splitting a boundary part.

See Also:
Constant Field Values

DELAUNAY_ERROR_NON_INSERTED_POINT

public static final int DELAUNAY_ERROR_NON_INSERTED_POINT
The point has not been inserted during the triangulation.

See Also:
Constant Field Values

DELAUNAY_ERROR_INCORRECT_TOPOLOGY

public static final int DELAUNAY_ERROR_INCORRECT_TOPOLOGY
The topology is wrong.

See Also:
Constant Field Values

DELAUNAY_ERROR_OUTSIDE_TRIANGLE

public static final int DELAUNAY_ERROR_OUTSIDE_TRIANGLE
See Also:
Constant Field Values

DELAUNAY_ERROR_REMOVING_EDGE

public static final int DELAUNAY_ERROR_REMOVING_EDGE
Failed at removing an edge.

See Also:
Constant Field Values

DELAUNAY_ERROR_ERROR_POINT_XYZ

public static final int DELAUNAY_ERROR_ERROR_POINT_XYZ
See Also:
Constant Field Values

DELAUNAY_ERROR_INVALID_CALL

public static final int DELAUNAY_ERROR_INVALID_CALL
Bad call to a method

See Also:
Constant Field Values

DELAUNAY_ERROR_INTERNAL_ERROR

public static final int DELAUNAY_ERROR_INTERNAL_ERROR
Inner error.

See Also:
Constant Field Values

DELAUNAY_ERROR_MISC

public static final int DELAUNAY_ERROR_MISC
Other error

See Also:
Constant Field Values
Constructor Detail

DelaunayError

public DelaunayError()
Default constructor, the associated message is DELAUNAY_INTERNAL_ERROR


DelaunayError

public DelaunayError(String s)
DelaunayError instanciated with a custom message. The inner error code is DELAUNAY_EROR_MISC

Parameters:
s -

DelaunayError

public DelaunayError(int errorCode)
DelaunayError created with the wanted error code.

Parameters:
errorCode -

DelaunayError

public DelaunayError(int errorCode,
                     String s)
DelaunayError created with both a custom message and a given error code.

Parameters:
errorCode -
s -
Method Detail

getMessage

public final String getMessage()
Overrides:
getMessage in class Throwable


Copyright © 2014 IRSTV CNRS-FR-2488. All Rights Reserved.