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
statusCodeHttpStatusCodeThe HTTP status code returned by the server.
messagestringThe error message, preferring the server-supplied text.
requestIdstringThe server-assigned request identifier, when present.
innerExceptionExceptionThe underlying exception, if any.
Properties
RequestId
The server-assigned request identifier. Include this when contacting Massive support.
public string? RequestId { get; }
Property Value
StatusCode
The HTTP status code returned by the server.
public HttpStatusCode StatusCode { get; }