Class LocalizationBucket.Error
Error structure to return in response bodies.
Inheritance
System.Object
LocalizationBucket.Error
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: GlitchedPolygons.Localization
Assembly: UnityGlitchedLocaleClientDocs.dll
Syntax
protected sealed class Error
Constructors
| Improve this Doc View SourceError()
Parameterless ctor.
Declaration
public Error()
Error(Int32, String)
Creates an LocalizationBucket.Error using a specific error code and message.
Declaration
public Error(int code, string message)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | code | Internal API error code. |
System.String | message | Server-side error message (in English). |
Properties
| Improve this Doc View SourceCode
The error code (clients can switch on this number to for example pick a corresponding translated error message).
Declaration
public int Code { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Message
Raw server-side error message to the client (in English).
Declaration
public string Message { get; set; }
Property Value
Type | Description |
---|---|
System.String |