Show / Hide Table of Contents

Class ExceptionHandler<TException>

Provides a generic way to handle an Exception.

Inheritance
Object
ExceptionHandler<TException>
Namespace: Cuemon
Assembly: Cuemon.Core.dll
Syntax
public class ExceptionHandler<TException>

    where TException : Exception
Type Parameters
Name Description
TException

The type of the Exception.

Methods

| Improve this Doc View Source

Create(Func<TException>)

Specifies the function delegate that determines the Exception to be thrown.

Declaration
public ExceptionInvoker<TException> Create(Func<TException> handler)
Parameters
Type Name Description
Func<TException> handler

The function delegate that determines the Exception to be thrown.

Returns
Type Description
ExceptionInvoker<TException>

An ExceptionInvoker<TException> with the specified handler.

Exceptions
Type Condition
ArgumentNullException

handler cannot be null.

  • Improve this Doc
  • View Source
In This Article
Back to top Copyright 2008-2022 Geekle. All rights reserved. Code with passion and love; deploy with confidence. 👨‍💻️🔥❤️🚀😎
Generated by DocFX