public class SchemaViolation extends RuntimeException
validation methods in a Schema| Modifier and Type | Class and Description |
|---|---|
static class |
SchemaViolation.ViolatorData
Data about the calling API that violated the schema
|
| Constructor and Description |
|---|
SchemaViolation(Schema schema,
SchemaViolation.ViolatorData violatorData,
String violation) |
SchemaViolation(Schema schema,
String violation)
Deprecated.
use
SchemaViolation(Schema, ViolatorData, String) instance |
SchemaViolation(String violation)
Deprecated.
use
SchemaViolation(Schema, ViolatorData, String) instance |
| Modifier and Type | Method and Description |
|---|---|
Schema |
getSchema() |
String |
getViolation() |
SchemaViolation.ViolatorData |
getViolatorData() |
String |
toString() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic SchemaViolation(String violation)
SchemaViolation(Schema, ViolatorData, String) instanceviolation - the violationpublic SchemaViolation(Schema schema, String violation)
SchemaViolation(Schema, ViolatorData, String) instanceschema - the schemaviolation - the violationpublic SchemaViolation(Schema schema, SchemaViolation.ViolatorData violatorData, String violation)
schema - the schemaviolatorData - data about the caller who violated the schemaviolation - the violationCopyright © 2011–2023 The Apache Software Foundation. All rights reserved.