ErrorHandler
RPC error handler that facilitates handling cross-cutting API errors. Converts generic StatusRuntimeException instances into specific Exception types to be handled by the callers.
The globalRpcErrorCallback is invoked with a {name, message} error object any time a custom RPC error occurs.
Constructor Summary
Public Constructor | ||
public |
constructor(globalRpcErrorCallback: function) Creates the error handler instance. |
Member Summary
Private Members | ||
private |
|
Method Summary
Public Methods | ||
public |
handleError(error: object): object Handles RPC error and calls the globalRpcErrorCallback. |