你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

EventHubsException Class

Definition

Serves as a basis for exceptions produced within the Event Hubs context.

public class EventHubsException : Exception
type EventHubsException = class
    inherit Exception
Public Class EventHubsException
Inherits Exception
Inheritance
EventHubsException

Constructors

Name Description
EventHubsException(Boolean, String, EventHubsException+FailureReason)

Initializes a new instance of the EventHubsException class.

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

Initializes a new instance of the EventHubsException class.

EventHubsException(Boolean, String, String, EventHubsException+FailureReason)

Initializes a new instance of the EventHubsException class.

EventHubsException(Boolean, String, String, Exception)

Initializes a new instance of the EventHubsException class.

EventHubsException(Boolean, String, String)

Initializes a new instance of the EventHubsException class.

EventHubsException(Boolean, String)

Initializes a new instance of the EventHubsException class.

EventHubsException(String, String, EventHubsException+FailureReason)

Initializes a new instance of the EventHubsException class, using the reason to detect whether or not it should be transient.

Properties

Name Description
EventHubName

The name of the Event Hubs to which the exception is associated.

IsTransient

Indicates whether an exception should be considered transient or final.

Message

Gets a message that describes the current exception.

Reason

The reason for the failure of an Event Hubs operation that resulted in the exception.

Methods

Name Description
ToString()

Converts the instance to string representation.

Applies to

See also