adTempus API
ArcanaDevelopment.adTempus.Shared Namespace / Message Class / CreateFromException Method / CreateFromException(String,Exception) Method

In This Topic
    CreateFromException(String,Exception) Method
    In This Topic
    Creates a message from an exception.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function CreateFromException( _
       ByVal code As String, _
       ByVal ex As Exception _
    ) As Message
    public static Message CreateFromException( 
       string code,
       Exception ex
    )

    Parameters

    code
    ex
    Remarks
    The code is used to retrieve the error message to use. The message is formatted to replace {0} (if present) with ex.Message. The DebuggingInformation property of the message is set to ex.ToString().
    See Also