Class GeneratorBadInputException

All Implemented Interfaces:
Serializable

public class GeneratorBadInputException extends GeneratorException
Wraps any IllegalArgument exception throw while parsing or generating code. These are user-caused by bad input.
See Also:
  • Constructor Details

    • GeneratorBadInputException

      public GeneratorBadInputException(@Nullable String message, @Nullable String seeConfigOpt, @Nullable Throwable cause)
      Creates a new wrapper illegal argument exception.
      Parameters:
      message - the exception message
      seeConfigOpt - an optional option name that may help fix the problem
      cause - the cause of the exception
    • GeneratorBadInputException

      public GeneratorBadInputException(@Nullable String message, Throwable cause)
      Creates a new wrapper illegal argument exception.
      Parameters:
      message - the exception message
      cause - the cause of the exception
    • GeneratorBadInputException

      public GeneratorBadInputException(String message, String seeConfigOpt)
      Creates a new wrapper illegal argument exception.
      Parameters:
      message - the exception message
      seeConfigOpt - an optional option name that may help fix the problem
  • Method Details

    • failBadInput

      public static void failBadInput(String message, String seeConfigOpt)
      Creates a new wrapper illegal argument exception.
      Parameters:
      message - the exception message
      seeConfigOpt - an optional option name that may help fix the problem