Class RevitServerApiException
- Namespace
- RevitServerNet
- Assembly
- RevitServerNet.dll
Exception for Revit Server API errors
public class RevitServerApiException : Exception, ISerializableInheritance
Implements
Inherited Members
Constructors
RevitServerApiException(string)
public RevitServerApiException(string message)Parameters
messagestring
RevitServerApiException(string, Exception)
public RevitServerApiException(string message, Exception innerException)Parameters
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
messagestringstatusCodeHttpStatusCoderesponseContentstringinnerExceptionException
Properties
ResponseContent
Body of the error response; null when the server returned no HTTP response
public string ResponseContent { get; }Property Value
StatusCode
HTTP status code of the error response; null when the server returned no HTTP response
public HttpStatusCode? StatusCode { get; }