Class ConstraintEnforcementException



  • public class ConstraintEnforcementException
    extends java.lang.RuntimeException
    Indicates a failure during constraint enforcement.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Coordinate getCoordinate​()
      Gets the approximate location of this error.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
    • Constructor Detail

      • ConstraintEnforcementException

        public ConstraintEnforcementException​(java.lang.String msg)
        Creates a new instance with a given message.
        Parameters:
        msg - a string
      • ConstraintEnforcementException

        public ConstraintEnforcementException​(java.lang.String msg,
                                              Coordinate pt)
        Creates a new instance with a given message and approximate location.
        Parameters:
        msg - a string
        pt - the location of the error
    • Method Detail

      • getCoordinate

        public Coordinate getCoordinate​()
        Gets the approximate location of this error.
        Returns:
        a location