Show / Hide Table of Contents

Class ApiErrorInfo

Contains HTTP client error information for REST APIs.

Inheritance
object
ApiErrorInfo
ForbiddenErrorInfo
PaymentRequiredErrorInfo
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: DNVGL.One.Compute.Core.PlatformClient.ApiErrors
Assembly: DNVGL.One.Compute.Core.dll
Syntax
public abstract class ApiErrorInfo

Constructors

View Source

ApiErrorInfo(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 Source

Message

Gets the message.

Declaration
public string Message { get; }
Property Value
Type Description
string

The message.

View Source

StatusCode

Gets the HTTP status code.

Declaration
public int StatusCode { get; }
Property Value
Type Description
int

The HTTP status code.

View Source

StatusDescription

Gets the status description.

Declaration
public string StatusDescription { get; }
Property Value
Type Description
string

The status description.

  • View Source
In this article
Back to top Copyright © DNV AS. All rights reserved.