ClientLibExtensionsGetAllExceptionMessages Method |
Gets the exception's message, and then descends through the inner exceptions, appending all their messages to the same string.
Namespace: RAYLASE.SPICE3.ClientLibAssembly: RAYLASE.SPICE3.ClientLib (in RAYLASE.SPICE3.ClientLib.dll) Version: 3.5.2
Syntax public static string GetAllExceptionMessages(
this Exception ex,
string msgs = ""
)
Parameters
- ex Exception
- The outer exception.
- msgs String (Optional)
- May contain a prefix for the collected messages.
Return Value
StringThe collected 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