java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
net.luis.utils.exception.InvalidValueException
- All Implemented Interfaces:
Serializable
Thrown to indicate that a given value is invalid.
It may be thrown when a system property has an invalid value.
The exception message should contain in this case the name of the system property and the invalid value.
The message may also contain a description of the expected value.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new invalid value exception with no details.InvalidValueException
(@Nullable String message) Constructs a new invalid value exception with the specified message.InvalidValueException
(@Nullable String message, @Nullable Throwable cause) Constructs a new invalid value exception with the specified message and cause.InvalidValueException
(@Nullable Throwable cause) Constructs a new invalid value exception with the specified cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidValueException
public InvalidValueException()Constructs a new invalid value exception with no details. -
InvalidValueException
Constructs a new invalid value exception with the specified message.- Parameters:
message
- The message of the exception
-
InvalidValueException
public InvalidValueException(@Nullable @Nullable String message, @Nullable @Nullable Throwable cause) Constructs a new invalid value exception with the specified message and cause.- Parameters:
message
- The message of the exceptioncause
- The cause of the exception
-
InvalidValueException
Constructs a new invalid value exception with the specified cause.- Parameters:
cause
- The cause of the exception
-