Method GetInnerExceptionMessage
- Namespace
- Ploch.CommandLine.Spectre.Output
- Assembly
- Ploch.CommandLine.Spectre.dll
GetInnerExceptionMessage(Exception?)
Gets a formatted message for an inner exception if one exists.
protected static string GetInnerExceptionMessage(Exception? innerException)
Parameters
innerExceptionExceptionThe inner exception to format.
Returns
- string
A formatted string containing inner exception details if the inner exception is not null; otherwise, an empty string.