DomainService.OnError Method

[WCF RIA Services Version 1 Service Pack 2 is compatible with either .NET framework 4 or .NET Framework 4.5, and with either Silverlight 4 or Silverlight 5.]

Called whenever an unrecoverable error occurs during the processing of a DomainService operation.

Namespace: System.ServiceModel.DomainServices.Server
Assembly: System.ServiceModel.DomainServices.Server (in System.ServiceModel.DomainServices.Server.dll)

Syntax

'Declaration
Protected Overridable Sub OnError ( _
    errorInfo As DomainServiceErrorInfo _
)
'Usage
Dim errorInfo As DomainServiceErrorInfo

Me.OnError(errorInfo)
protected virtual void OnError(
    DomainServiceErrorInfo errorInfo
)
protected:
virtual void OnError(
    DomainServiceErrorInfo^ errorInfo
)
abstract OnError : 
        errorInfo:DomainServiceErrorInfo -> unit 
override OnError : 
        errorInfo:DomainServiceErrorInfo -> unit 
protected function OnError(
    errorInfo : DomainServiceErrorInfo
)

Parameters

Remarks

Override this method to perform exception logging, or to inspect server errors before results are sent back to the client.

See Also

Reference

DomainService Class

System.ServiceModel.DomainServices.Server Namespace