Source code for gemseo.third_party.fastjsonschema.exceptions
# -*- coding: utf-8 -*-
[docs]class JsonSchemaException(ValueError):
"""
Exception raised by validation function. Contains ``message`` with
information what is wrong.
"""
def __init__(self, message):
super(JsonSchemaException, self).__init__(message)
self.message = message
[docs]class JsonSchemaDefinitionException(JsonSchemaException):
"""
Exception raised by generator of validation function.
"""