# -*- coding: utf-8 -*-

"""
error classes
"""


class BaseError(Exception):
    def __init__(self, value):
        self.value = value

    def __str__(self):
        return repr(self.value)


class DevalError(BaseError):
    """
        This is Deval BaseError
    """
    pass


class TargetNotFoundError(DevalError):
    """
        This is TargetNotFoundError BaseError
        When something is not found
    """
    pass


class ScriptParamError(DevalError):
    """
        This is ScriptParamError BaseError
        When something goes wrong
    """
    pass


class DeviceConnectionError(BaseError):
    """
        device connection error
    """
    DEVICE_CONNECTION_ERROR = r"error:\s*((device \'\w+\' not found)|(cannot connect to daemon at [\w\:\s\.]+ Connection timed out))"
    pass


class PerformanceError(BaseError):
    pass

6e72cf2e1d22c61e4161a8814f56b007c2291842
<mask token>


class TargetNotFoundError(DevalError):
    """
        This is TargetNotFoundError BaseError
        When something is not found
    """
    pass


class ScriptParamError(DevalError):
    """
        This is ScriptParamError BaseError
        When something goes wrong
    """
    pass


class DeviceConnectionError(BaseError):
    """
        device connection error
    """
    DEVICE_CONNECTION_ERROR = (
        "error:\\s*((device \\'\\w+\\' not found)|(cannot connect to daemon at [\\w\\:\\s\\.]+ Connection timed out))"
        )
    pass


class PerformanceError(BaseError):
    pass

<mask token>


class DevalError(BaseError):
    <mask token>
    pass


class TargetNotFoundError(DevalError):
    """
        This is TargetNotFoundError BaseError
        When something is not found
    """
    pass


class ScriptParamError(DevalError):
    """
        This is ScriptParamError BaseError
        When something goes wrong
    """
    pass


class DeviceConnectionError(BaseError):
    """
        device connection error
    """
    DEVICE_CONNECTION_ERROR = (
        "error:\\s*((device \\'\\w+\\' not found)|(cannot connect to daemon at [\\w\\:\\s\\.]+ Connection timed out))"
        )
    pass


class PerformanceError(BaseError):
    pass

<mask token>


class BaseError(Exception):
    <mask token>
    <mask token>


class DevalError(BaseError):
    """
        This is Deval BaseError
    """
    pass


class TargetNotFoundError(DevalError):
    """
        This is TargetNotFoundError BaseError
        When something is not found
    """
    pass


class ScriptParamError(DevalError):
    """
        This is ScriptParamError BaseError
        When something goes wrong
    """
    pass


class DeviceConnectionError(BaseError):
    """
        device connection error
    """
    DEVICE_CONNECTION_ERROR = (
        "error:\\s*((device \\'\\w+\\' not found)|(cannot connect to daemon at [\\w\\:\\s\\.]+ Connection timed out))"
        )
    pass


class PerformanceError(BaseError):
    pass

<mask token>


class BaseError(Exception):

    def __init__(self, value):
        self.value = value

    def __str__(self):
        return repr(self.value)


class DevalError(BaseError):
    """
        This is Deval BaseError
    """
    pass


class TargetNotFoundError(DevalError):
    """
        This is TargetNotFoundError BaseError
        When something is not found
    """
    pass


class ScriptParamError(DevalError):
    """
        This is ScriptParamError BaseError
        When something goes wrong
    """
    pass


class DeviceConnectionError(BaseError):
    """
        device connection error
    """
    DEVICE_CONNECTION_ERROR = (
        "error:\\s*((device \\'\\w+\\' not found)|(cannot connect to daemon at [\\w\\:\\s\\.]+ Connection timed out))"
        )
    pass


class PerformanceError(BaseError):
    pass

# -*- coding: utf-8 -*-

"""
error classes
"""


class BaseError(Exception):
    def __init__(self, value):
        self.value = value

    def __str__(self):
        return repr(self.value)


class DevalError(BaseError):
    """
        This is Deval BaseError
    """
    pass


class TargetNotFoundError(DevalError):
    """
        This is TargetNotFoundError BaseError
        When something is not found
    """
    pass


class ScriptParamError(DevalError):
    """
        This is ScriptParamError BaseError
        When something goes wrong
    """
    pass


class DeviceConnectionError(BaseError):
    """
        device connection error
    """
    DEVICE_CONNECTION_ERROR = r"error:\s*((device \'\w+\' not found)|(cannot connect to daemon at [\w\:\s\.]+ Connection timed out))"
    pass


class PerformanceError(BaseError):
    pass
