NDepend.API Documentation
GetExceptionAndInnerExceptionTypeMessageAndStackTrace(Exception) Method
NDepend.Helpers Namespace > ExtensionMethodsFailure Class : GetExceptionAndInnerExceptionTypeMessageAndStackTrace(Exception) Method
The exception
Get a multi-lines string containing the exception type, message and stacktrace, and if it has an inner-exception, its type, message and stacktrace are also shown.
Syntax
[Extension()]
public static string GetExceptionAndInnerExceptionTypeMessageAndStackTrace( 
   Exception exception
)

Parameters

exception
The exception

Return Value

The multi-lines string.
Remarks
The frames in the stack trace will contains IL instructions offset.
Requirements

Target Platforms: Windows 11, 10, 8, 7 and Linux, MacOS with net8.0, net7.0 or net6.0 installed

See Also

Reference

ExtensionMethodsFailure Class
ExtensionMethodsFailure Members