Top

asyncrcon.exceptions module

class InvalidPacketException(Exception):
    """
    Commonly thrown when a package does not
    fit the right format of an RCON response package.
    """

    def __init__(self):
        super(InvalidPacketException, self).__init__(
            'invalid padding data')


class AuthenticationException(Exception):
    """
    Thrown when login authentication to the
    RCON server failed.
    """

    def __init__(self):
        super(AuthenticationException, self).__init__(
            'login failed')


class NulLResponseException(Exception):
    """
    Thrown when a package response contains
    no data.
    This exception is only used internally
    and will not be thrown using the asyncrcon
    API interface.
    """

    def __init__(self):
        super(NulLResponseException, self).__init__(
            'null response')


class MaxRetriesExceedException(Exception):
    """
    Thrown when the maximum ammount of retries
    of command executions was exceed.
    """

    def __init__(self):
        super(MaxRetriesExceedException, self).__init__(
            'maximum ammount of command retries was exceed')

Classes

class AuthenticationException

Thrown when login authentication to the RCON server failed.

class AuthenticationException(Exception):
    """
    Thrown when login authentication to the
    RCON server failed.
    """

    def __init__(self):
        super(AuthenticationException, self).__init__(
            'login failed')

Ancestors (in MRO)

Class variables

var args

Static methods

def __init__(

self)

Initialize self. See help(type(self)) for accurate signature.

def __init__(self):
    super(AuthenticationException, self).__init__(
        'login failed')

class InvalidPacketException

Commonly thrown when a package does not fit the right format of an RCON response package.

class InvalidPacketException(Exception):
    """
    Commonly thrown when a package does not
    fit the right format of an RCON response package.
    """

    def __init__(self):
        super(InvalidPacketException, self).__init__(
            'invalid padding data')

Ancestors (in MRO)

Class variables

var args

Static methods

def __init__(

self)

Initialize self. See help(type(self)) for accurate signature.

def __init__(self):
    super(InvalidPacketException, self).__init__(
        'invalid padding data')

class MaxRetriesExceedException

Thrown when the maximum ammount of retries of command executions was exceed.

class MaxRetriesExceedException(Exception):
    """
    Thrown when the maximum ammount of retries
    of command executions was exceed.
    """

    def __init__(self):
        super(MaxRetriesExceedException, self).__init__(
            'maximum ammount of command retries was exceed')

Ancestors (in MRO)

Class variables

var args

Static methods

def __init__(

self)

Initialize self. See help(type(self)) for accurate signature.

def __init__(self):
    super(MaxRetriesExceedException, self).__init__(
        'maximum ammount of command retries was exceed')

class NulLResponseException

Thrown when a package response contains no data. This exception is only used internally and will not be thrown using the asyncrcon API interface.

class NulLResponseException(Exception):
    """
    Thrown when a package response contains
    no data.
    This exception is only used internally
    and will not be thrown using the asyncrcon
    API interface.
    """

    def __init__(self):
        super(NulLResponseException, self).__init__(
            'null response')

Ancestors (in MRO)

Class variables

var args

Static methods

def __init__(

self)

Initialize self. See help(type(self)) for accurate signature.

def __init__(self):
    super(NulLResponseException, self).__init__(
        'null response')