Enum boon::CompileError
source · pub enum CompileError {
Show 17 variants
ParseUrlError {
url: String,
src: Box<dyn Error>,
},
LoadUrlError {
url: String,
src: Box<dyn Error>,
},
UnsupportedUrlScheme {
url: String,
},
InvalidMetaSchemaUrl {
url: String,
src: Box<dyn Error>,
},
UnsupportedDraft {
url: String,
},
MetaSchemaCycle {
url: String,
},
ValidationError {
url: String,
src: ValidationError<'static, 'static>,
},
ParseIdError {
loc: String,
},
ParseAnchorError {
loc: String,
},
DuplicateId {
url: String,
id: String,
ptr1: String,
ptr2: String,
},
DuplicateAnchor {
anchor: String,
url: String,
ptr1: String,
ptr2: String,
},
InvalidJsonPointer(String),
JsonPointerNotFound(String),
AnchorNotFound {
url: String,
reference: String,
},
UnsupprtedVocabulary {
url: String,
vocabulary: String,
},
InvalidRegex {
url: String,
regex: String,
src: Box<dyn Error>,
},
Bug(Box<dyn Error>),
}
Expand description
Error type for compilation failures.
Variants§
ParseUrlError
Error in parsing url
.
LoadUrlError
Failed loading url
.
UnsupportedUrlScheme
no UrlLoader
registered for the url
InvalidMetaSchemaUrl
Error in parsing $schema
url.
UnsupportedDraft
draft url
is not supported
MetaSchemaCycle
Cycle in resolving $schema
in url
.
ValidationError
url
is not valid against metaschema.
ParseIdError
Error in parsing $id
at loc
ParseAnchorError
Error in parsing $anchor
at loc
DuplicateId
Duplicate id id
in url
at ptr1
and ptr2
.
DuplicateAnchor
Duplicate anchor anchor
in url
at ptr1
and ptr2
.
InvalidJsonPointer(String)
Not a valid json pointer.
JsonPointerNotFound(String)
JsonPointer evaluated to nothing.
AnchorNotFound
anchor in reference
not found in url
.
UnsupprtedVocabulary
Unsupported vocabulary vocabulary
in url
.
InvalidRegex
Invalid Regex regex
at url
.
Bug(Box<dyn Error>)
Encountered bug in compiler implementation. Please report this as an issue for this crate.
Trait Implementations§
source§impl Debug for CompileError
impl Debug for CompileError
source§impl Display for CompileError
impl Display for CompileError
source§impl Error for CompileError
impl Error for CompileError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()