Class GeneratorBadInputException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
dk.mada.jaxrs.generator.api.exceptions.GeneratorException
dk.mada.jaxrs.generator.api.exceptions.GeneratorBadInputException
- All Implemented Interfaces:
Serializable
Wraps any IllegalArgument exception throw while parsing or generating code.
These are user-caused by bad input.
- See Also:
-
Constructor Summary
ConstructorDescriptionGeneratorBadInputException
(@Nullable String message, @Nullable String seeConfigOpt, @Nullable Throwable cause) Creates a new wrapper illegal argument exception.GeneratorBadInputException
(@Nullable String message, Throwable cause) Creates a new wrapper illegal argument exception.GeneratorBadInputException
(String message, String seeConfigOpt) Creates a new wrapper illegal argument exception. -
Method Summary
Modifier and TypeMethodDescriptionstatic void
failBadInput
(String message, String seeConfigOpt) Creates a new wrapper illegal argument exception.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
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 messageseeConfigOpt
- an optional option name that may help fix the problemcause
- the cause of the exception
-
GeneratorBadInputException
Creates a new wrapper illegal argument exception.- Parameters:
message
- the exception messagecause
- the cause of the exception
-
GeneratorBadInputException
Creates a new wrapper illegal argument exception.- Parameters:
message
- the exception messageseeConfigOpt
- an optional option name that may help fix the problem
-
-
Method Details
-
failBadInput
Creates a new wrapper illegal argument exception.- Parameters:
message
- the exception messageseeConfigOpt
- an optional option name that may help fix the problem
-