Skip to main content

Class ConsulRequestException

Namespace: Consul
Assembly: Consul.dll

Represents errors that occur while sending data to or fetching data from the Consul agent.

public class ConsulRequestException : Exception, ISerializable

Inheritance

objectExceptionConsulRequestException

Implements

ISerializable

Inherited Members

Exception.GetBaseException() , Exception.GetObjectData(SerializationInfo, StreamingContext) , Exception.GetType() , Exception.ToString() , Exception.Data , Exception.HelpLink , Exception.HResult , Exception.InnerException , Exception.Message , Exception.Source , Exception.StackTrace , Exception.TargetSite , Exception.SerializeObjectState , object.Equals(object) , object.Equals(object, object) , object.GetHashCode() , object.GetType() , object.MemberwiseClone() , object.ReferenceEquals(object, object) , object.ToString()

Constructors

ConsulRequestException()

public ConsulRequestException()

ConsulRequestException(string, HttpStatusCode)

public ConsulRequestException(string message, HttpStatusCode statusCode)

Parameters

message string

statusCode HttpStatusCode

ConsulRequestException(string, HttpStatusCode, Exception)

public ConsulRequestException(string message, HttpStatusCode statusCode, Exception inner)

Parameters

message string

statusCode HttpStatusCode

inner Exception

Properties

StatusCode

public HttpStatusCode StatusCode { get; set; }

Property Value

HttpStatusCode

  • Constructors
    • ConsulRequestException()
    • ConsulRequestException(string, HttpStatusCode)
    • ConsulRequestException(string, HttpStatusCode, Exception)
  • Properties
    • StatusCode