OnError Method
Collapse the table of content
Expand the table of content

IObserver<T>.OnError Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Notifies the observer that an exception has occurred in processing the observable sequence.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

void OnError(
	Exception error
)

Parameters

error
Type: System.Exception

Although exception is an object that is derived from System.Exception, it does not necessarily represent an exception that is thrown by the provider. It can also represent a routine or expected error condition, such as data that is missing or unavailable. The OnError(Exception) method should be seen as informational, and the provider should not expect the observer to provide error handling.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft