Package io.github.qishr.cascara.schema.exception
Class SchemaException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.github.qishr.cascara.common.diagnostic.LocalizableRuntimeException
io.github.qishr.cascara.common.diagnostic.LocatableException
io.github.qishr.cascara.schema.exception.SchemaException
Direct Known Subtypes:
ValidationException
public class SchemaException
extends LocatableException
Constructor Summary
| Constructor | Description |
|---|---|
| SchemaException(Class<?> clazz, DiagnosticCode code, Object[] details) | For errors in a schema for a class. |
| SchemaException(DiagnosticCode code, Object[] details) | For errors not inside a schema file. |
| SchemaException(URI uri, Throwable cause, DiagnosticCode code, Object[] details) | For errors in a schema caused by an exception. |
| SchemaException(URI uri, DiagnosticCode code, Object[] details) | For errors in a schema. |
| SchemaException(URI uri, int line, int column, DiagnosticCode code, Object[] details) | For errors in a schema where the line and column are known. |
| SchemaException(URI uri, String schemaPath, DiagnosticCode code, Object[] details) | For errors relating to a path in a compiled schema. |
| SchemaException(URI uri, String schemaPath, int line, int column, DiagnosticCode code, Object[] details) | For errors relating to a path in a schema where the line and column are known. |
| SchemaException(LocalizableException cause) |
Method Summary
| Modifier and Type | Method | Description |
|---|---|---|
| public String | getSchemaPath() | |
| public Class<?> | getType() |
Methods inherited from LocatableException
getRawMessage, getUri, getLine, getLocalizedMessage, getMessage, getColumn
Methods inherited from LocalizableRuntimeException
getCode, getDetails
Method Details
getSchemaPath
public String getSchemaPath()
getType
public Class<?> getType()