Exceptions#
This covers the exception classes provided by little-a2s.
- class little_a2s.Error#
Bases:
ExceptionThe 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,ErrorA malformed A2S packet was received.
This is raised by
A2SClientProtocoland propagated up to theA2SandAsyncA2Sclients.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:
ErrorThe 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.