Interface to notify when an error occurs.
an implementation of IntervalDetector
Called when an error is detected, either at initialization because excessive changes in sensor measurements are found, or because sensor becomes unreliable. When an error occurs, detector is stopped and needs to be restarted to be used again.