ExtensionsGetAllMessages Method |
Concatenates exception messages recursively through the inner exceptions.
Namespace: RAYLASE.SharedAssembly: RAYLASE.Shared (in RAYLASE.Shared.dll) Version: 2.19.0
Syntaxpublic static string GetAllMessages(
this Exception exception
)
Parameters
- exception Exception
- The main exception.
Return Value
StringConcatenated exception messages.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Exception. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also