Class InvalidStringException

All Implemented Interfaces:
Serializable

public class InvalidStringException extends RuntimeException
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:

  • If a string is empty and the operation requires a non-empty string.
  • If a string is not in the correct format.
The exception message should contain a description of the invalid string.
The message may also contain a description of the expected string.
See Also:
  • Constructor Details

    • InvalidStringException

      public InvalidStringException()
      Constructs a new invalid string exception with no details.
    • InvalidStringException

      public InvalidStringException(@Nullable @Nullable String message)
      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 exception
      cause - The cause of the exception
    • InvalidStringException

      public InvalidStringException(@Nullable @Nullable Throwable cause)
      Constructs a new invalid string exception with the specified cause.
      Parameters:
      cause - The cause of the exception