Table of Contents

Class MassiveApiException

Namespace
MassiveDotNet
Assembly
MassiveDotNet.dll

Thrown when the Massive platform API returns an unsuccessful response.

public class MassiveApiException : Exception, ISerializable
Inheritance
MassiveApiException
Implements
Derived
Inherited Members

Constructors

MassiveApiException(HttpStatusCode, string, string?, Exception?)

Initializes a new instance of the MassiveApiException class.

public MassiveApiException(HttpStatusCode statusCode, string message, string? requestId = null, Exception? innerException = null)

Parameters

statusCode HttpStatusCode

The HTTP status code returned by the server.

message string

The error message, preferring the server-supplied text.

requestId string

The server-assigned request identifier, when present.

innerException Exception

The underlying exception, if any.

Properties

RequestId

The server-assigned request identifier. Include this when contacting Massive support.

public string? RequestId { get; }

Property Value

string

StatusCode

The HTTP status code returned by the server.

public HttpStatusCode StatusCode { get; }

Property Value

HttpStatusCode