momoa.exceptions [source] ¶
module momoa.exceptions
Exceptions for working with JSON Schema specifications.
Classes
-
SchemaError — Generic JSON Schema error.
-
SchemaParseError — Error while parsing JSON Schema.
-
DataValidationError — Error on validation of data.
-
InvalidFieldError — Error on invalid field.
momoa.exceptions.SchemaError [source] ¶
class SchemaError()
Bases : Exception
Generic JSON Schema error.
momoa.exceptions.SchemaParseError [source] ¶
class SchemaParseError(schema_name: str, error: Exception)
Bases : SchemaError
Error while parsing JSON Schema.
momoa.exceptions.DataValidationError [source] ¶
class DataValidationError(obj, error: Exception)
Bases : SchemaError
Error on validation of data.
momoa.exceptions.InvalidFieldError [source] ¶
class InvalidFieldError(field_name: str)
Bases : SchemaError
Error on invalid field.