Source code for autoease.core.error

"""
@author: meili
@contact: meili02@corp.netease.com
@file: error.py
@date: 2022/12/12 19:32
@desc: 
"""


[docs]class BaseError(Exception): def __init__(self, value): self.value = value def __str__(self): return repr(self.value)
[docs]class AutoeaseError(BaseError): """ This is Autoease BaseError """ pass
[docs]class TargetNotFoundError(AutoeaseError): """ This is TargetNotFoundError BaseError When something is not found """ pass
[docs]class ResourceNotFoundError(AutoeaseError): """ This is TargetNotFoundError BaseError When something is not found """ pass
[docs]class FileNotFoundError(AutoeaseError): """ This is FileNotFoundError When file is not found """ pass
[docs]class ModuleError(AutoeaseError): """ This is ModuleError BaseError When something is not found """ pass
[docs]class AssertionError(AutoeaseError): """ This is TargetNotFoundError BaseError When something is not found """ pass
[docs]class KeyboardError(AutoeaseError): pass