Table of Contents

Class ExceptionUtil

Namespace
Hi.Common.Messages
Assembly
HiGeom.dll

Provides utility methods for handling exceptions.

public static class ExceptionUtil
Inheritance
ExceptionUtil
Inherited Members

Methods

CatchExceptions(Task, Action<Exception>)

Continues the task and reports any exception via onException.

public static Task CatchExceptions(this Task task, Action<Exception> onException)

Parameters

task Task
onException Action<Exception>

Returns

Task

CatchExceptions<TSilent>(Task, Action<Exception>)

Continues the task and reports exceptions via onException, silently ignoring TSilent.

public static Task CatchExceptions<TSilent>(this Task task, Action<Exception> onException) where TSilent : Exception

Parameters

task Task
onException Action<Exception>

Returns

Task

Type Parameters

TSilent