onError should be overloaded by subclass, otherwise callback installers are no longer available for that class.
This commit is contained in:
parent
757feb10c6
commit
ba532e0434
|
|
@ -103,6 +103,19 @@ public:
|
||||||
// allow chaining
|
// allow chaining
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Register a function to be called when an error occurs. This should be defined, otherwise the base methods are used.
|
||||||
|
* @param callback
|
||||||
|
*/
|
||||||
|
DeferredGet &onError(const ErrorCallback &callback)
|
||||||
|
{
|
||||||
|
// store the callback
|
||||||
|
_errorCallback = callback;
|
||||||
|
|
||||||
|
// allow chaining
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Register a function to be called when a message arrives
|
* Register a function to be called when a message arrives
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue