C# Client Library
A C# Client Library for the AnalyzeRe REST API
Loading...
Searching...
No Matches
ServerError.cs
Go to the documentation of this file.
1using System.Runtime.Serialization;
3
4namespace AnalyzeRe.APITypes
5{
7 [APITypeAlias("Error")]
8 public class ServerError : APIType
9 {
10 #region Public Properties
12 [DataMember(Order = 2)]
13 public string message { get; set; }
14
16 [DataMember(Order = 3)]
17 public string traceback { get; set; }
18 #endregion Public Properties
19
22 public override string ToString()
23 {
24 return "\"message\": " + (message == null ? "(null)" : "\"" + message + "\"") +
25 (traceback == null ? "" : "\n\"traceback\": \"" + traceback.Trim() + "\"");
26 }
27 }
28}
Base class used by all types and resources.
Definition APIType.cs:8
Describes a collection of resources which can be listed.
Used to deserialize server error messages.
Definition ServerError.cs:9
string message
The server-provided error message.
string traceback
The server-provided error traceback.
override string ToString()
Creates and returns a string representation of a ServerError.