Show / Hide Table of Contents

Class ApiErrorInfo

Contains HTTP client error information for REST APIs.

Inheritance
System.Object
ApiErrorInfo
ForbiddenErrorInfo
PaymentRequiredErrorInfo
Namespace: DNVGL.One.Compute.Core.PlatformClient.ApiErrors
Assembly: DNVGL.One.Compute.Core.dll
Syntax
public abstract class ApiErrorInfo : object

Constructors

View Source

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

View Source

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 Source

Message

Gets the message.

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

The message.

View Source

StatusCode

Gets the HTTP status code.

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

The HTTP status code.

View Source

StatusDescription

Gets the status description.

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

The status description.

  • View Source
Back to top Copyright © DNV GL AS. All rights reserved.