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, 7and Linux, MacOS with net10.0, net9.0 or net8.0 installed

See Also

Reference

ExtensionMethodsFailure Class
ExtensionMethodsFailure Members