Show / Hide Table of Contents

Class EventHubsException

Base Exception for various Event Hubs errors.

Inheritance
System.Exception
EventHubsException
EventHubsCommunicationException
EventHubsTimeoutException
MessageSizeExceededException
MessagingEntityNotFoundException
PublisherRevokedException
QuotaExceededException
ReceiverDisconnectedException
ServerBusyException
Namespace: System.Dynamic.ExpandoObject
Assembly: Microsoft.Azure.EventHubs.dll
Syntax
public class EventHubsException : Exception

Constructors

EventHubsException(Boolean)

Returns a new EventHubsException

Declaration
public EventHubsException (bool isTransient);
Parameters
System.Boolean isTransient

Specifies whether or not the exception is transient.

EventHubsException(Boolean, Exception)

Returns a new EventHubsException

Declaration
public EventHubsException (bool isTransient, Exception innerException);
Parameters
System.Boolean isTransient

Specifies whether or not the exception is transient.

System.Exception innerException

The inner exception.

EventHubsException(Boolean, String)

Returns a new EventHubsException

Declaration
public EventHubsException (bool isTransient, string message);
Parameters
System.Boolean isTransient

Specifies whether or not the exception is transient.

System.String message

The detailed message exception.

EventHubsException(Boolean, String, Exception)

Returns a new EventHubsException

Declaration
public EventHubsException (bool isTransient, string message, Exception innerException);
Parameters
System.Boolean isTransient

Specifies whether or not the exception is transient.

System.String message

The detailed message exception.

System.Exception innerException

The inner exception.

EventHubsException(Boolean, String, Exception, EventHubsException+ErrorSourceType)

Returns a new EventHubsException

Declaration
public EventHubsException (bool isTransient, string message, Exception innerException, Microsoft.Azure.EventHubs.EventHubsException.ErrorSourceType errorSource);
Parameters
System.Boolean isTransient

Specifies whether or not the exception is transient.

System.String message

The detailed message exception.

System.Exception innerException

The inner exception.

EventHubsException.ErrorSourceType errorSource

Error source of exception.

Properties

ErrorSource

Gets the error source.

Declaration
public Microsoft.Azure.EventHubs.EventHubsException.ErrorSourceType ErrorSource { get; }
Property Value
EventHubsException.ErrorSourceType

EventHubsNamespace

Gets the Event Hubs namespace from which the exception occured, if available.

Declaration
public string EventHubsNamespace { get; }
Property Value
System.String

IsTransient

A boolean indicating if the exception is a transient error or not.

Declaration
public bool IsTransient { get; }
Property Value
System.Boolean

returns true when user can retry the operation that generated the exception without additional intervention.

Message

Gets the message as a formatted string.

Declaration
public override string Message { get; }
Property Value
System.String

Back to top Azure SDK for .NET