Skip to main content

Class ErrorMessageConfig

Stores and manages error message configurations used for displaying error info and loading the appropriate fallback scene during runtime. This config is accessible via Unity's project settings.

[Settings(SettingsUsage.RuntimeProject, "mobisim/Server Error Handeling", null)]
public sealed class ErrorMessageConfig : Settings<ErrorMessageConfig>

Inheritance​

Inherited Members​

Extension Methods​

Properties​

ErrorMesesageScene​

The fallback scene that is loaded when a server error occurs.

public AssetReference ErrorMesesageScene { get; }

Property Value​

AssetReference

Methods​

GetMessage(string)​

Get the message corresponding to the error code.

public string GetMessage(string ErrorCode)

Parameters​

NameTypeDescription
ErrorCodestringThe error key code.

Returns​

string — The message mapped to the inputted code.