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
message
Type: System.StringThe message.
ex
Type: System.ExceptionThe exception.
code
Type: Microsoft.PerformancePoint.Scorecards.ErrorCodeThe error code.
Return Value
Type: System.Exception
See Also
Reference
Microsoft.PerformancePoint.Scorecards.ServerCommon Namespace