Class PositionOutOfBoundsException

  • All Implemented Interfaces:
    java.io.Serializable

    public class PositionOutOfBoundsException
    extends java.lang.RuntimeException
    An exception thrown when a position is outside of its expected bounds.
    See Also:
    Serialized Form
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • PositionOutOfBoundsException

        public PositionOutOfBoundsException​(Vectori position,
                                            Vectori min,
                                            Vectori max)
        Constructs the exception from int coordinate vectors.
        Parameters:
        position - The out-of-bounds position
        min - The minimum acceptable bound
        max - The maximum acceptable bound
      • PositionOutOfBoundsException

        public PositionOutOfBoundsException​(Vectorf position,
                                            Vectorf min,
                                            Vectorf max)
        Constructs the exception from float coordinate vectors.
        Parameters:
        position - The out-of-bounds position
        min - The minimum acceptable bound
        max - The maximum acceptable bound
      • PositionOutOfBoundsException

        public PositionOutOfBoundsException​(Vectord position,
                                            Vectord min,
                                            Vectord max)
        Constructs the exception from double coordinate vectors.
        Parameters:
        position - The out-of-bounds position
        min - The minimum acceptable bound
        max - The maximum acceptable bound