Exceptions#

This covers the exception classes provided by little-a2s.

class little_a2s.Error#

Bases: Exception

The base class for A2S exceptions.

Added in version 0.6.0.

add_note(object, /)#

Exception.add_note(note) – add a note to the exception

with_traceback(object, /)#

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

class little_a2s.PayloadError#

Bases: ValueError, Error

A malformed A2S packet was received.

This is raised by A2SClientProtocol and propagated up to the A2S and AsyncA2S clients.

Added in version 0.6.0.

add_note(object, /)#

Exception.add_note(note) – add a note to the exception

with_traceback(object, /)#

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

class little_a2s.ChallengeError#

Bases: Error

The server repeatedly challenged our client in spite of us attempting to comply with their challenges.

This is a rare exception that suggests the server’s A2S implementation is broken.

Added in version 0.6.0.

add_note(object, /)#

Exception.add_note(note) – add a note to the exception

with_traceback(object, /)#

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.