adTempus API
System Namespace / ExceptionExtensions Class / GetRecursiveMessage Method
The exception to return the message for


In This Topic
    GetRecursiveMessage Method
    In This Topic
    Gets the Message from an Exception and any inner exceptions.
    Syntax
    'Declaration
     
    
    <ExtensionAttribute()>
    <NotNullAttribute()>
    Public Shared Function GetRecursiveMessage( _
       ByVal ex As Exception _
    ) As String
    [Extension()]
    [NotNull()]
    public static string GetRecursiveMessage( 
       Exception ex
    )
    [Extension()]
    [NotNull()]
    public:
    static String^ GetRecursiveMessage( 
       Exception^ ex
    ) 

    Parameters

    ex
    The exception to return the message for
    Remarks
    If ex has an InnerException, this method traverses the entire exception chain, returning a concatenation of the messages from all the nested exceptions.
    See Also