Table of Contents

Class SDKException

Namespace
Styra.Opa.OpenApi.Models.Errors
Assembly
Styra.Opa.dll
public class SDKException : Exception, ISerializable
Inheritance
SDKException
Implements
Inherited Members

Constructors

SDKException(string, int, string, HttpResponseMessage)

public SDKException(string message, int statusCode, string body, HttpResponseMessage rawResponse)

Parameters

message string
statusCode int
body string
rawResponse HttpResponseMessage

Properties

Body

public string Body { get; set; }

Property Value

string

Message

Gets a message that describes the current exception.

public override string Message { get; }

Property Value

string

The error message that explains the reason for the exception, or an empty string ("").

RawResponse

public HttpResponseMessage RawResponse { get; set; }

Property Value

HttpResponseMessage

StatusCode

public int StatusCode { get; set; }

Property Value

int

Methods

ToString()

Creates and returns a string representation of the current exception.

public override string ToString()

Returns

string

A string representation of the current exception.