docs: update documentation of setErrorHandler method

Signed-off-by: Radoslaw Wielonski <radoslaw.wielonski@nordcloud.com>
This commit is contained in:
Radoslaw Wielonski
2021-12-08 13:15:25 +01:00
parent 6026ebb680
commit a07e0f5f06
+3 -2
View File
@@ -99,9 +99,10 @@ export type ServiceBuilder = {
): ServiceBuilder;
/**
* Set the error handler
* Sets an additional errorHandler to run before the defaultErrorHandler.
*
* If no handler is given the default one is used
* If we want to use only custom errorHandler without defaultErrorHandler we need to
* disable the defaultErrorHandler by invoking disableDefaultErrorHandler()
*
* @param errorHandler - an error handler
*/