Class ApiErrorInfo
Contains HTTP client error information for REST APIs.
Namespace: DNVGL.One.Compute.Core.PlatformClient.ApiErrors
Assembly: DNVGL.One.Compute.Core.dll
Syntax
public abstract class ApiErrorInfo : object
Constructors
View SourceApiErrorInfo(Int32, String)
Initializes a new instance of the ApiErrorInfo class.
Declaration
protected ApiErrorInfo(int statusCode, string statusDescription)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | statusCode | The status code. |
System.String | statusDescription | The status description. |
ApiErrorInfo(Int32, String, String)
Initializes a new instance of the ApiErrorInfo class.
Declaration
protected ApiErrorInfo(int statusCode, string statusDescription, string message)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | statusCode | The status code. |
System.String | statusDescription | The status description. |
System.String | message | The message. |
Properties
View SourceMessage
Gets the message.
Declaration
public string Message { get; }
Property Value
Type | Description |
---|---|
System.String | The message. |
StatusCode
Gets the HTTP status code.
Declaration
public int StatusCode { get; }
Property Value
Type | Description |
---|---|
System.Int32 | The HTTP status code. |
StatusDescription
Gets the status description.
Declaration
public string StatusDescription { get; }
Property Value
Type | Description |
---|---|
System.String | The status description. |