java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
net.luis.utils.exception.InvalidStringException
- All Implemented Interfaces:
Serializable
Thrown to indicate that a string is invalid.
This exception will be thrown if a string is not valid for a specific operation.
For example:
The message may also contain a description of the expected string.
This exception will be thrown if a string is not valid for a specific operation.
For example:
- If a string is empty and the operation requires a non-empty string.
- If a string is not in the correct format.
The message may also contain a description of the expected string.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new invalid string exception with no details.InvalidStringException
(@Nullable String message) Constructs a new invalid string exception with the specified message.InvalidStringException
(@Nullable String message, @Nullable Throwable cause) Constructs a new invalid string exception with the specified message and cause.InvalidStringException
(@Nullable Throwable cause) Constructs a new invalid string 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
-
InvalidStringException
public InvalidStringException()Constructs a new invalid string exception with no details. -
InvalidStringException
Constructs a new invalid string exception with the specified message.- Parameters:
message
- The message of the exception
-
InvalidStringException
public InvalidStringException(@Nullable @Nullable String message, @Nullable @Nullable Throwable cause) Constructs a new invalid string exception with the specified message and cause.- Parameters:
message
- The message of the exceptioncause
- The cause of the exception
-
InvalidStringException
Constructs a new invalid string exception with the specified cause.- Parameters:
cause
- The cause of the exception
-