Callback interface to handle errors.
More...
#include <ErrorCallbackInterface.h>
Callback interface to handle errors.
When framework has a callback handler installed, the handler may override default framework actions on error situations.
- See also
- setErrorCallback()
◆ ~ErrorCallbackInterface()
virtual alexaClientSDK::properties::ErrorCallbackInterface::~ErrorCallbackInterface |
( |
| ) |
|
|
virtualdefaultnoexcept |
◆ onGetPropertyError()
virtual Action alexaClientSDK::properties::ErrorCallbackInterface::onGetPropertyError |
( |
StatusCode |
status, |
|
|
const std::string & |
configUri |
|
) |
| |
|
pure virtualnoexcept |
Handler of get property errors.
This handler is invoked when getting string or binary property call encounters an error.
- Parameters
-
[in] | status | Status code. Handler must be able to handle unknown error codes. |
[in] | configUri | Configuration URI for the properties container. |
- Returns
- Preferred action to continue.
- Return values
-
Action::DEFAULT | Execute default action. The framework decides what to do. |
Action::FAIL | Fails the call. The framework aborts the operation and returns an error code to caller. |
Action::CLEAR_DATA | Signals to framework to clear the property value and continue normally. The caller will get an error as a result. |
Action::RETRY | Signals to framework to retry failed operation. |
◆ onOpenPropertiesError()
virtual Action alexaClientSDK::properties::ErrorCallbackInterface::onOpenPropertiesError |
( |
StatusCode |
status, |
|
|
const std::string & |
configUri |
|
) |
| |
|
pure virtualnoexcept |
Handler of open properties error.
This handler is invoked when open properties call encounters an error.
- Parameters
-
[in] | status | Status code. Handler must be able to handle unknown error codes. |
[in] | configUri | Configuration URI for the properties container. |
- Returns
- Preferred action to continue.
- Return values
-
Action::CONTINUE | Execute default action. The framework decides what to do. |
Action::FAIL | Fails the call. The framework aborts the operation and returns an error code to caller. |
Action::CLEAR_DATA | Signals to framework to clear all container's data and continue normally. |
Action::RETRY | Signals to framework to retry failed operation. |
◆ onPutPropertyError()
virtual Action alexaClientSDK::properties::ErrorCallbackInterface::onPutPropertyError |
( |
StatusCode |
status, |
|
|
const std::string & |
configUri |
|
) |
| |
|
pure virtualnoexcept |
Handler of put property errors.
This handler is invoked when setting string or binary property call encounters an error.
- Parameters
-
[in] | status | Status code. Handler must be able to handle unknown error codes. |
[in] | configUri | Configuration URI for the properties container. |
- Returns
- Preferred action to continue.
- Return values
-
Action::CONTINUE | Execute default action. The framework decides what to do. |
Action::FAIL | Fails the call. The framework aborts the operation and returns an error code to caller. |
Action::CLEAR_DATA | Signals to framework to clear the property value and continue normally. |
Action::RETRY | Signals to framework to retry failed operation. |
The documentation for this class was generated from the following file:
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0