# encoding: utf-8

from zybats.compat import JSONDecodeError, FileNotFoundError

""" failure type exceptions
    these exceptions will mark test as failure
"""

class MyBaseFailure(Exception):
    pass

class ValidationFailure(MyBaseFailure):
    pass

class ExtractFailure(MyBaseFailure):
    pass

class SetupHooksFailure(MyBaseFailure):
    pass

class TeardownHooksFailure(MyBaseFailure):
    pass


""" error type exceptions
    these exceptions will mark test as error
"""

class MyBaseError(Exception):
    pass

class FileFormatError(MyBaseError):
    pass

class ParamsError(MyBaseError):
    pass

class NotFoundError(MyBaseError):
    pass

class FileNotFound(FileNotFoundError, NotFoundError):
    pass

class FunctionNotFound(NotFoundError):
    pass

class VariableNotFound(NotFoundError):
    pass

class EnvNotFound(NotFoundError):
    pass

class ApiNotFound(NotFoundError):
    pass

class TestcaseNotFound(NotFoundError):
    pass
