Skip to content

ErrorMessage ​

Represents an error message.

Kind: Struct

Namespace: CrowdControl.Games

Public Constructors

ErrorMessage(string message)

Creates a new instance of the CrowdControl.Games.ErrorMessage struct.

ErrorMessage(MessageSource message)

Creates a new instance of the CrowdControl.Games.ErrorMessage struct.

ErrorMessage(string friendly, string technical)

Creates a new instance of the CrowdControl.Games.ErrorMessage struct.

ErrorMessage(MessageSource friendly, string technical)

Creates a new instance of the CrowdControl.Games.ErrorMessage struct.

ErrorMessage(string friendly, MessageSource technical)

Creates a new instance of the CrowdControl.Games.ErrorMessage struct.

ErrorMessage(MessageSource friendly, MessageSource technical)

Creates a new instance of the CrowdControl.Games.ErrorMessage struct.

Public Member Functions

string

Friendly(object[] params)

Gets the friendly error message.

string

Technical(object[] params)

Gets the friendly error message.

ErrorMessage

WithFriendly(string message)

Gets a copy of the error with the supplied friendly message.

ErrorMessage

WithFriendly(MessageSource message)

Gets a copy of the error with the supplied friendly message.

ErrorMessage

WithTechnical(string message)

Gets a copy of the error with the supplied technical message.

ErrorMessage

WithTechnical(MessageSource message)

Gets a copy of the error with the supplied technical message.

Public Attributes

ErrorMessage

Unknown

Gets the unknown error message.