Table of Contents

Class RevitServerApiException

Namespace
RevitServerNet
Assembly
RevitServerNet.dll

Exception for Revit Server API errors

public class RevitServerApiException : Exception, ISerializable

Inheritance

Implements

Inherited Members

Constructors

RevitServerApiException(string)

public RevitServerApiException(string message)

Parameters

message string

RevitServerApiException(string, Exception)

public RevitServerApiException(string message, Exception innerException)

Parameters

message string
innerException Exception

RevitServerApiException(string, HttpStatusCode, string, Exception)

Creates an exception for an HTTP error response returned by the server

public RevitServerApiException(string message, HttpStatusCode statusCode, string responseContent, Exception innerException)

Parameters

message string
statusCode HttpStatusCode
responseContent string
innerException Exception

Properties

ResponseContent

Body of the error response; null when the server returned no HTTP response

public string ResponseContent { get; }

Property Value

string

StatusCode

HTTP status code of the error response; null when the server returned no HTTP response

public HttpStatusCode? StatusCode { get; }

Property Value

HttpStatusCode?