Errors module¶
Error classes used by this package
-
exception
json_schema_validator.errors.
SchemaError
¶ An exception raised when there is a problem with the schema itself.
-
exception
json_schema_validator.errors.
ValidationError
(message, new_message=None, object_expr=None, schema_expr=None)¶ An exception raised when validator finds mismatch between the validated object and the schema.
Variables: - message – Old and verbose message that contains less helpful message and lots of JSON data (deprecated).
- new_message – short and concise message about the problem
- object_expr – A JavaScript expression that evaluates to the object that failed to
validate. The expression always starts with a root object called
'object'
. - schema_expr – A JavaScript expression that evaluates to the schema that was checked
at the time validation failed. The expression always starts with a root
object called
'schema'
.