opengsq.exceptions package

Submodules

opengsq.exceptions.authentication_exception module

exception opengsq.exceptions.authentication_exception.AuthenticationException

Bases: Exception

opengsq.exceptions.invalid_packet_exception module

exception opengsq.exceptions.invalid_packet_exception.InvalidPacketException(message: str)

Bases: Exception

Represents errors that occur during application execution when a packet is invalid.

static throw_if_not_equal(received, expected)

Checks if the received value is equal to the expected value.

Args:

received: The received value. expected: The expected value.

Raises:

InvalidPacketException: Thrown when the received value does not match the expected value.

static get_message(received, expected)

Returns a formatted error message.

Args:

received: The received value. expected: The expected value.

Returns:

str: The formatted error message.

opengsq.exceptions.server_not_found_exception module

exception opengsq.exceptions.server_not_found_exception.ServerNotFoundException

Bases: Exception

Module contents