Class SchemaViolation
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apache.curator.framework.schema.SchemaViolation
-
- All Implemented Interfaces:
java.io.Serializable
public class SchemaViolation extends java.lang.RuntimeExceptionThrown by the variousvalidationmethods in a Schema- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSchemaViolation.ViolatorDataData about the calling API that violated the schema
-
Constructor Summary
Constructors Constructor Description SchemaViolation(java.lang.String violation)Deprecated.useSchemaViolation(Schema, ViolatorData, String)instanceSchemaViolation(Schema schema, java.lang.String violation)Deprecated.useSchemaViolation(Schema, ViolatorData, String)instanceSchemaViolation(Schema schema, SchemaViolation.ViolatorData violatorData, java.lang.String violation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SchemagetSchema()java.lang.StringgetViolation()SchemaViolation.ViolatorDatagetViolatorData()java.lang.StringtoString()
-
-
-
Constructor Detail
-
SchemaViolation
public SchemaViolation(java.lang.String violation)
Deprecated.useSchemaViolation(Schema, ViolatorData, String)instance- Parameters:
violation- the violation
-
SchemaViolation
public SchemaViolation(Schema schema, java.lang.String violation)
Deprecated.useSchemaViolation(Schema, ViolatorData, String)instance- Parameters:
schema- the schemaviolation- the violation
-
SchemaViolation
public SchemaViolation(Schema schema, SchemaViolation.ViolatorData violatorData, java.lang.String violation)
- Parameters:
schema- the schemaviolatorData- data about the caller who violated the schemaviolation- the violation
-
-
Method Detail
-
getSchema
public Schema getSchema()
-
getViolation
public java.lang.String getViolation()
-
getViolatorData
public SchemaViolation.ViolatorData getViolatorData()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Throwable
-
-