Show / Hide Table of Contents

Class ExceptionEx

Class containing some extension methods for System.Exception.

Inheritance
System.Object
ExceptionEx
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace:Extend
Assembly:Extend.dll
Syntax
public static class ExceptionEx

Methods

| Improve this Doc View Source

FormatException(Exception, Action<StringBuilder>)

Formates the given exception.

Declaration
public static string FormatException(this Exception ex, Action<StringBuilder> action = null)
Parameters
Type Name Description
System.Exception ex

The exception to format.

System.Action<T><System.Text.StringBuilder> action

A optional action to add custom content.

Returns
Type Description
System.String

Returns the formated exception.

Exceptions
Type Condition
System.ArgumentNullException

ex can not be null.

  • Improve this Doc
  • View Source
Back to top Copyright © 2015-2016 Microsoft
Generated by DocFX