Click or drag to resize

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.ClientLib
Assembly: RAYLASE.SPICE3.ClientLib (in RAYLASE.SPICE3.ClientLib.dll) Version: 3.4.1
Syntax
C#
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

String
The 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