notifyObserver method
Dispatches to the appropriate ISpectObserver callback.
Subclasses override to route to onException etc.
Implementation
void notifyObserver(ISpectObserver observer) {
if (_isError) {
observer.onError(this);
} else {
observer.onLog(this);
}
}