[docs]
class CFDIError(Exception):
"""
CFDI Error
"""
[docs]
class SchemaValidationError(Exception):
"""
Schema Validation Error
"""
def __init__(self, error_log):
self.error_log = error_log
super().__init__(error_log)
[docs]
class ResponseError(Exception):
"""
Request Response Error
"""
def __init__(self, response):
self.response = response
super().__init__(response)
[docs]
class NamespaceMismatchError(Exception):
"""
Returned by objectify and xmlify
"""
def __init__(self, node):
self.node = node
super().__init__(node)
[docs]
class DocumentNotFoundError(ResponseError):
pass
[docs]
class CFDIInvalidError(ResponseError):
pass