Class ResponseStatus
Common ResponseStatus class that must be present in all response DTO's
Inheritance
Inherited Members
Namespace: Terrasoft.Nui.ServiceModel.DataContract
Assembly: Terrasoft.Nui.ServiceModel.dll
Syntax
[DataContract]
public class ResponseStatus
Constructors
ResponseStatus()
Initializes new instance ResponseStatus class. Response status without errorcode == success
Declaration
public ResponseStatus()
ResponseStatus(String)
Initializes new instance ResponseStatus class. Response status with errorcode == failure
Declaration
public ResponseStatus(string errorCode)
Parameters
Type | Name | Description |
---|---|---|
System.String | errorCode |
ResponseStatus(String, String)
Initializes new instance ResponseStatus class. Response status with errorcode == failure
Declaration
public ResponseStatus(string errorCode, string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | errorCode | |
System.String | message |
Properties
ErrorCode
Contains custom ErrorCode enumeration, if one is provided in ValidationException otherwise, name exception type will be stored, for example typeof(Exception).Name Value of non-null means service encountered an error while processing request.
Declaration
[DataMember(Order = 1)]
public string ErrorCode { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Errors
For few detailed verification errors. May contain specific error message for each named field.
Declaration
[DataMember(Order = 4)]
public List<ResponseError> Errors { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<ResponseError> |
Message
Convenient error message.
Declaration
[DataMember(Order = 2)]
public string Message { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Meta
For additional custom error metadata.
Declaration
[DataMember(Order = 5)]
public Dictionary<string, string> Meta { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.Dictionary<System.String, System.String> |
StackTrace
Server StackTrace when DebugMode is enabled.
Declaration
[DataMember(Order = 3)]
public string StackTrace { get; set; }
Property Value
Type | Description |
---|---|
System.String |