ProtocolError

io.github.pidoveproject.showdown.protocol.ProtocolError
enum ProtocolError(message: String) extends Throwable

A protocol-bound error

Attributes

Graph
Supertypes
trait Enum
trait Product
trait Equals
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
Known subtypes

Members list

Type members

Enum entries

final case class AuthentificationFailed(message: String) extends ProtocolError

The authentification process failed.

The authentification process failed.

Attributes

case case ConnectionClosed extends ProtocolError

The connection has been closed.

The connection has been closed.

Attributes

final case class InputExhausted(data: String, length: Int) extends ProtocolError

The input has been exhausted.

The input has been exhausted.

Attributes

final case class InvalidFormat(message: String) extends ProtocolError

The input is in invalid format.

The input is in invalid format.

Attributes

final case class InvalidInput(input: String, message: String) extends ProtocolError

Tried to decode an invalid input.

Tried to decode an invalid input.

Attributes

final case class Miscellaneous(message: String) extends ProtocolError

Miscellaneous error.

Miscellaneous error.

Attributes

final case class Multiple(errors: List[ProtocolError]) extends ProtocolError

An aggregation of multiple errors.

An aggregation of multiple errors.

Attributes

final case class Thrown(cause: Throwable) extends ProtocolError

The ProtocolError has been caused by a thrown error.

The ProtocolError has been caused by a thrown error.

Attributes