C - context object typepublic abstract static class ContextCallback.Default<C> extends Object implements ContextCallback<C>
This simply logs onError calls at debug level. This should be overridden to perform more specific error handling.
ContextCallback.Default<C>| Constructor and Description |
|---|
Default() |
| Modifier and Type | Method and Description |
|---|---|
void |
onError(C context,
ErrorReason errorReason)
Notification of a contextual error related to this callback.
|
public void onError(C context, ErrorReason errorReason)
ContextCallbackonError is called include the session being closed, a
communication timeout, or a problem with the provided parameters. No
further calls will be made to this callback for the call context.onError in interface ContextCallback<C>context - the context object supplied when making the call. May be
null.errorReason - a value representing the error; this can be one of
constants defined in ErrorReason, or a feature-specific
reasonCopyright © 2023 DiffusionData Limited. All rights reserved.