Table of Contents

Class ActionException

Namespace
Tmds.DBus.Protocol
Assembly
Tmds.DBus.Protocol.dll

Provides methods for checking completion exceptions emitted by message observers.

[Obsolete("Use ObserverHandler instead.")]
public static class ActionException
Inheritance
ActionException
Inherited Members

Methods

IsConnectionDisposed(Exception)

Checks if the exception indicates the connection was disposed.

public static bool IsConnectionDisposed(Exception exception)

Parameters

exception Exception

The exception to check.

Returns

bool

true if the exception indicates the connection was disposed; otherwise, false.

Remarks

This exception is emitted when EmitOnConnectionDispose or EmitOnDispose is set.

IsDisposed(Exception)

Checks if the exception indicates either the observer or connection was disposed.

public static bool IsDisposed(Exception exception)

Parameters

exception Exception

The exception to check.

Returns

bool

true if the exception indicates disposal; otherwise, false.

Remarks

This exception is emitted when EmitOnDispose, EmitOnObserverDispose, or EmitOnConnectionDispose is set.

IsObserverDisposed(Exception)

Checks if the exception indicates the observer was disposed.

public static bool IsObserverDisposed(Exception exception)

Parameters

exception Exception

The exception to check.

Returns

bool

true if the exception indicates the observer was disposed; otherwise, false.

Remarks

This exception is emitted when EmitOnObserverDispose or EmitOnDispose is set.