JsonRpc.IsFatalException(Exception) Method

Definition

Indicates whether the connection should be closed when the server throws an exception.

protected virtual bool IsFatalException (Exception ex);
abstract member IsFatalException : Exception -> bool
override this.IsFatalException : Exception -> bool
Protected Overridable Function IsFatalException (ex As Exception) As Boolean

Parameters

ex
Exception

The Exception thrown from server that is potentially fatal.

Returns

A Boolean indicating if the streams should be closed.

Remarks

This method is invoked within the context of an exception filter or when a task fails to complete and simply returns false by default. If the process should crash on an exception, calling FailFast(String, Exception) will produce such behavior.

Applies to