Source code for pymerit.exceptions
"""
Exceptions
----------
"""
[docs]class MeritNoHandler(Exception):
"""
Not class to handle metadata with a given schema
"""
pass
[docs]class MeritNoAttribute(Exception):
"""
Internal metadata does not have the required attribute
"""
pass
[docs]class MeritInvalidAttribute(Exception):
"""
Invalid name specified to generate the class attribute
"""
pass
[docs]class MeritInvalidSchema(Exception):
"""
Invalid schema definition
"""
pass
[docs]class MeritMissingSchema(Exception):
"""
Schema not defined in the given merit subclass
"""
pass
[docs]class MeritDuplicateSchema(Exception):
"""
Another handler exists for the given schema
"""
pass
[docs]class MeritInvalidContext(Exception):
"""
Invalid class specified while adding context
"""
pass
[docs]class MeritInvalidResource(Exception):
"""
Invalid class specified while adding resource
"""
pass
[docs]class MeritNotRegistered(Exception):
"""
Class not a registered handler for any schema
"""
pass