Table of Contents

Class InvalidPacketException

Namespace
OpenGSQ.Exceptions
Assembly
OpenGSQ.dll

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

public class InvalidPacketException : Exception, ISerializable
Inheritance
InvalidPacketException
Implements
Inherited Members

Constructors

InvalidPacketException(string)

Initializes a new instance of the InvalidPacketException class with a specified error message.

public InvalidPacketException(string message)

Parameters

message string

The message that describes the error.

Methods

ThrowIfNotEqual<T>(T, T)

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

public static void ThrowIfNotEqual<T>(T received, T expected)

Parameters

received T

The received value.

expected T

The expected value.

Type Parameters

T

The type of the values to compare.

Exceptions

InvalidPacketException

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