Source code for dojson.errors
# -*- coding: utf-8 -*-
#
# This file is part of DoJSON
# Copyright (C) 2015, 2016 CERN.
#
# DoJSON is free software; you can redistribute it and/or
# modify it under the terms of the Revised BSD License; see LICENSE
# file for more details.
"""Define all DoJSON exceptions."""
[docs]class DoJSONException(Exception):
"""Parent for all DoJSON exceptions.
.. versionadded:: 1.0.0
"""
[docs]class IgnoreKey(DoJSONException):
"""The corresponding key has been ignored.
.. versionadded:: 0.2.0
"""
[docs]class IgnoreItem(DoJSONException):
"""The corresponding item from the current iterable has been ignored.
.. versionadded:: 1.3.0
"""
[docs]class MissingRule(DoJSONException):
"""Raise when no matching rule was found.
.. versionadded:: 1.0.0
"""