# Path: smarkets/errors.py
# class Error(Exception):
# 
#     "Base class for every Smarkets error"
# 
# Path: smarkets/streaming_api/eto.py



from smarkets.errors import Error as _Error
from smarkets.streaming_api.eto import LogoutReason
class SocketDisconnected(_Error):

    "Socket was disconnected while reading"
    pass


class InvalidCallbackError(_Error):

    "Invalid callback was specified"
    pass


class InvalidUrlError(_Error):

    "Raised when a URL is invalid"
    pass


class DownloadError(_Error):

    "Raised when a URL could not be fetched"
    pass


class LoginError(_Error):

    "Raised when a login is not successful"
    def __init__(self, reason):
        self.reason_msg = 'Unknown'
        self.reason = reason

# Path: smarkets/errors.py
# class Error(Exception):
# 
#     "Base class for every Smarkets error"
# 
# Path: smarkets/streaming_api/eto.py



# Path: smarkets/streaming_api/exceptions.py
from smarkets.errors import Error as _Error
from smarkets.streaming_api.eto import LogoutReason

class SocketDisconnected(_Error):

    "Socket was disconnected while reading"
    pass


class InvalidCallbackError(_Error):

    "Invalid callback was specified"
    pass


class InvalidUrlError(_Error):

    "Raised when a URL is invalid"
    pass


class DownloadError(_Error):

    "Raised when a URL could not be fetched"
    pass


class LoginError(_Error):

    "Raised when a login is not successful"
    def __init__(self, reason):
        self.reason_msg = 'Unknown'
        self.reason = reason

        if reason in LogoutReason.values():