Returns detailed error message that includes the message and stack trace from exception and every inner exception.
Namespace: MonoSoftware.CoreAssembly: MonoSoftware.Core (in MonoSoftware.Core.dll) Version: 1.0.40.669 (1.0.40.669)
Syntax
C# |
---|
public static string GetDetailedErrorMessage(
this Exception exception,
string newLine
) |
Visual Basic |
---|
<ExtensionAttribute>
Public Shared Function GetDetailedErrorMessage (
exception As Exception,
newLine As String
) As String |
Visual C++ |
---|
public:
[ExtensionAttribute]
static String^ GetDetailedErrorMessage(
Exception^ exception,
String^ newLine
) |
F# |
---|
static member GetDetailedErrorMessage :
exception : Exception *
newLine : string -> string
|
Return Value
Type:
StringDetailed error message
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