dev.harrel.jsonschema.SchemaNotFoundException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of json-schema Show documentation
Show all versions of json-schema Show documentation
Library for JSON schema validation
The newest version!
package dev.harrel.jsonschema;
/**
* Exception type used to indicate that resolution of specific schema has failed.
*/
public class SchemaNotFoundException extends JsonSchemaException {
private final String ref;
SchemaNotFoundException(CompoundUri compoundUri) {
super(String.format("Couldn't find schema with uri [%s]", compoundUri));
this.ref = compoundUri.toString();
}
/**
* Schema ref getter.
* @return reference string for which the resolution failed
*/
public String getRef() {
return ref;
}
}