Share via


ServerUtils.HandleException method (String, Exception, ErrorCode)

Logs an exception in the event log.

Namespace:  Microsoft.PerformancePoint.Scorecards.ServerCommon
Assembly:  Microsoft.PerformancePoint.Scorecards.ServerCommon (in Microsoft.PerformancePoint.Scorecards.ServerCommon.dll)

Syntax

'Declaration
Public Shared Function HandleException ( _
    message As String, _
    ex As Exception, _
    code As ErrorCode _
) As Exception
'Usage
Dim message As String
Dim ex As Exception
Dim code As ErrorCode
Dim returnValue As Exception

returnValue = ServerUtils.HandleException(message, _
    ex, code)
public static Exception HandleException(
    string message,
    Exception ex,
    ErrorCode code
)

Parameters

Return value

Type: System.Exception
The exception as a BpmException object.

See also

Reference

ServerUtils class

ServerUtils members

HandleException overload

Microsoft.PerformancePoint.Scorecards.ServerCommon namespace