Skip to content

StandardErrorsEx

Inherits object

Public Static Functions

ErrorMessage

GetMessage(this StandardErrors error)

Gets the message for the given error. Returns the message for the error, or ErrorMessage.Unknown if the error is not recognized.

string

GetFriendlyMessage(this StandardErrors error, params object?[] parameters)

Gets the friendly message for the given error. Returns the friendly message for the error.

string

GetTechnicalMessage(this StandardErrors error, params object?[] parameters)

Gets the technical message for the given error. Returns the technical message for the error.

ErrorMessage

WithFriendly(this StandardErrors error, string message)

Documentation inherited from ErrorMessage.WithFriendly(string).

ErrorMessage

WithFriendly(this StandardErrors error, ErrorMessage.MessageSource message)

Documentation inherited from WithFriendly(StandardErrors, string).

ErrorMessage

WithTechnical(this StandardErrors error, string message)

Documentation inherited from ErrorMessage.WithTechnical(string).

ErrorMessage

WithTechnical(this StandardErrors error, ErrorMessage.MessageSource message)

Documentation inherited from WithTechnical(StandardErrors, string).

ErrorSource

SourceType(this MethodBase method)

Gets the source type of the given method. Returns the source type of the method.

ErrorSource

SourceType(this StandardErrors error)

Gets the source type of the given error. Returns the source type of the error.

bool

IsAbnormal(this StandardErrors error)

Checks if the error is abnormal or expected as part of regular gameplay. Returns true if the error is abnormal; otherwise, false.

Private Functions

bool

IsPlural(string value)

Checks if the given English string is (probably) plural. Returns true if the string is plural; otherwise, false.

Private Attributes

IReadOnlyDictionary

_messages

Dictionary of standard error messages.