Package be.gaudry.model.exception
Class OutOfBoundException
java.lang.Object
java.lang.Throwable
java.lang.Exception
be.gaudry.model.exception.OutOfBoundException
- All Implemented Interfaces:
Serializable
Thrown to indicate that an object member has been set with a value
out of the allowed range of values.
Provided by the broldev.core.model project.
- Since:
- 1.0 Oct 22, 2010, broldev.core.model 0.1.17 dependency
- Version:
- 1.0 Oct 22, 2010
- Author:
- Steph GAUDRY
- See Also:
- Serialized Form
-
Constructor Summary
ConstructorDescriptionBuilds anOutOfBoundException
with no detail message.OutOfBoundException(Object outOfBoundObject, Object lowerBound, Object upperBound)
Builds anOutOfBoundException
with bounds and value information -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
OutOfBoundException
public OutOfBoundException()Builds anOutOfBoundException
with no detail message. -
OutOfBoundException
Builds anOutOfBoundException
with bounds and value information- Parameters:
outOfBoundObject
-lowerBound
-upperBound
-
-
-
Method Details
-
getLocalizedMessage
- Overrides:
getLocalizedMessage
in classThrowable
-
getLowerBound
- Returns:
- the lower boundary
-
getUpperBound
- Returns:
- the upper boundary
-
getOutOfBoundCause
- Returns:
- the out of bound object
-