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