Notifies the observer that the provider has experienced an error condition.
Parameters
error
n object that provides additional information about the error.
Examples
The following example provides an implementation of the on_error method in a latitude/longitude tracking application. The method simply reports that data is currently unavailable; it does not make use of the std::exception object passed to it as a parameter. See the Example section of the xtd::iobserver<type_t> topic for the complete example.