![]() |
AlexaClientSDK
1.26.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <TestExceptionEncounteredSender.h>
Classes | |
class | ExceptionParams |
Public Member Functions | |
void | sendExceptionEncountered (const std::string &unparsedDirective, avsCommon::avs::ExceptionErrorType error, const std::string &message) override |
std::shared_ptr< avs::AVSDirective > | parseDirective (const std::string &rawJSON, std::shared_ptr< avsCommon::avs::attachment::AttachmentManager > attachmentManager) |
ExceptionParams | waitForNext (const std::chrono::seconds duration) |
![]() | |
virtual | ~ExceptionEncounteredSenderInterface ()=default |
TestExceptionEncounteredSender is a mock of the ExceptionEncounteredSenderInterface
and allows tests to wait for invocations upon those interfaces and inspect the parameters of those invocations.
std::shared_ptr< avsCommon::avs::AVSDirective > alexaClientSDK::integration::test::TestExceptionEncounteredSender::parseDirective | ( | const std::string & | rawJSON, |
std::shared_ptr< avsCommon::avs::attachment::AttachmentManager > | attachmentManager | ||
) |
Parse an AVSDirective
from a JSON string.
rawJSON | The JSON to parse. |
attachmentManager | The AttachmentManager to initialize the new AVSDirective with. |
AVSDirective
, or nullptr if parsing the JSON fails.
|
overridevirtual |
Send a System::ExceptionEncountered
message to AVS.
AVSDirectives
.unparsedDirective | The unparsed JSON of the directive. |
error | The type of error encountered. |
errorDescription | Additional error details for logging and troubleshooting. |
Implements alexaClientSDK::avsCommon::sdkInterfaces::ExceptionEncounteredSenderInterface.
TestExceptionEncounteredSender::ExceptionParams alexaClientSDK::integration::test::TestExceptionEncounteredSender::waitForNext | ( | const std::chrono::seconds | duration | ) |
Function to retrieve the next DirectiveParams in the test queue or time out if the queue is empty. Takes a duration in seconds to wait before timing out.
AlexaClientSDK 1.26.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0