Package de.Keyle.MyPet.api.gui
Class ValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
de.Keyle.MyPet.api.gui.ValidationException
- All Implemented Interfaces:
Serializable
Thrown by
SectionType codecs and the menu loader when a JSON definition fails validation.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionValidationException(String message) Reports a JSON menu definition that failed validation.ValidationException(String message, Throwable cause) Reports a JSON menu definition that failed validation, wrapping the 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
-
ValidationException
Reports a JSON menu definition that failed validation.- Parameters:
message- what failed validation, ideally naming the menu and field
-
ValidationException
Reports a JSON menu definition that failed validation, wrapping the cause.- Parameters:
message- what failed validation, ideally naming the menu and fieldcause- the underlying failure
-