Package org.spongepowered.api.util
Class PositionOutOfBoundsException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.spongepowered.api.util.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
-
-
Constructor Summary
Constructors Constructor Description PositionOutOfBoundsException(Vectord position, Vectord min, Vectord max)
Constructs the exception from double coordinate vectors.PositionOutOfBoundsException(Vectorf position, Vectorf min, Vectorf max)
Constructs the exception from float coordinate vectors.PositionOutOfBoundsException(Vectori position, Vectori min, Vectori max)
Constructs the exception from int coordinate vectors.
-
-
-
Constructor Detail
-
PositionOutOfBoundsException
public PositionOutOfBoundsException(Vectori position, Vectori min, Vectori max)
Constructs the exception from int coordinate vectors.- Parameters:
position
- The out-of-bounds positionmin
- The minimum acceptable boundmax
- 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 positionmin
- The minimum acceptable boundmax
- The maximum acceptable bound
-
-