Package io.vertx.json.schema
Class JsonSchemaValidationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- io.vertx.json.schema.JsonSchemaValidationException
-
- All Implemented Interfaces:
Serializable
public final class JsonSchemaValidationException extends Exception
This is the main class for every JsonSchemaValidation flow related errors- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JsonSchemaValidationException(String message, String location, OutputErrorType errorType, StackTraceElement stackTraceElement)JsonSchemaValidationException(String message, Throwable cause, String location, OutputErrorType errorType)JsonSchemaValidationException(String message, Throwable cause, String location, OutputErrorType errorType, StackTraceElement stackTraceElement)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OutputErrorTypeerrorType()Stringlocation()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
JsonSchemaValidationException
public JsonSchemaValidationException(String message, Throwable cause, String location, OutputErrorType errorType)
-
JsonSchemaValidationException
public JsonSchemaValidationException(String message, String location, OutputErrorType errorType, StackTraceElement stackTraceElement)
-
JsonSchemaValidationException
public JsonSchemaValidationException(String message, Throwable cause, String location, OutputErrorType errorType, StackTraceElement stackTraceElement)
-
-
Method Detail
-
location
public String location()
- Returns:
- the location that failed the validation, if any
-
errorType
public OutputErrorType errorType()
- Returns:
- our best guess on what the validation error type is.
-
-