Package dev.voidframework.core.exception
Class DurationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
dev.voidframework.core.exception.DurationException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DurationException.InvalidNumericValue,DurationException.InvalidTemporalUnit,DurationException.MissingNumericValue,DurationException.MissingTemporalUnit
All exceptions thrown by the Duration utility class are subclasses of
DurationException.- Since:
- 1.6.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classException indicates that given value not a correct numeric value.static classException indicates that given temporal unit is unknown.static classException indicates that numeric value part of the duration is missing.static classException indicates that temporal unit of the duration is missing. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDurationException(String message) Build a new instance.protectedDurationException(String message, Throwable cause) Build a new instance. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
DurationException
Build a new instance.- Parameters:
message- The detail message- Since:
- 1.6.0
-
DurationException
Build a new instance.- Parameters:
message- The detail messagecause- The cause- Since:
- 1.6.0
-