AWS SDK for C++  1.9.108
AWS SDK for C++
PollyErrors.h
Go to the documentation of this file.
1 
6 #pragma once
7 
11 
12 namespace Aws
13 {
14 namespace Polly
15 {
16 enum class PollyErrors
17 {
18  //From Core//
20  INCOMPLETE_SIGNATURE = 0,
21  INTERNAL_FAILURE = 1,
22  INVALID_ACTION = 2,
23  INVALID_CLIENT_TOKEN_ID = 3,
24  INVALID_PARAMETER_COMBINATION = 4,
25  INVALID_QUERY_PARAMETER = 5,
26  INVALID_PARAMETER_VALUE = 6,
27  MISSING_ACTION = 7, // SDK should never allow
28  MISSING_AUTHENTICATION_TOKEN = 8, // SDK should never allow
29  MISSING_PARAMETER = 9, // SDK should never allow
30  OPT_IN_REQUIRED = 10,
31  REQUEST_EXPIRED = 11,
32  SERVICE_UNAVAILABLE = 12,
33  THROTTLING = 13,
34  VALIDATION = 14,
35  ACCESS_DENIED = 15,
36  RESOURCE_NOT_FOUND = 16,
37  UNRECOGNIZED_CLIENT = 17,
38  MALFORMED_QUERY_STRING = 18,
39  SLOW_DOWN = 19,
40  REQUEST_TIME_TOO_SKEWED = 20,
41  INVALID_SIGNATURE = 21,
42  SIGNATURE_DOES_NOT_MATCH = 22,
43  INVALID_ACCESS_KEY_ID = 23,
44  REQUEST_TIMEOUT = 24,
45  NETWORK_CONNECTION = 99,
46 
47  UNKNOWN = 100,
49 
50  ENGINE_NOT_SUPPORTED= static_cast<int>(Aws::Client::CoreErrors::SERVICE_EXTENSION_START_RANGE) + 1,
51  INVALID_LEXICON,
52  INVALID_NEXT_TOKEN,
53  INVALID_S3_BUCKET,
54  INVALID_S3_KEY,
55  INVALID_SAMPLE_RATE,
56  INVALID_SNS_TOPIC_ARN,
57  INVALID_SSML,
58  INVALID_TASK_ID,
59  LANGUAGE_NOT_SUPPORTED,
60  LEXICON_NOT_FOUND,
61  LEXICON_SIZE_EXCEEDED,
62  MARKS_NOT_SUPPORTED_FOR_FORMAT,
63  MAX_LEXEME_LENGTH_EXCEEDED,
64  MAX_LEXICONS_NUMBER_EXCEEDED,
65  SERVICE_FAILURE,
66  SSML_MARKS_NOT_SUPPORTED_FOR_TEXT_TYPE,
67  SYNTHESIS_TASK_NOT_FOUND,
68  TEXT_LENGTH_EXCEEDED,
69  UNSUPPORTED_PLS_ALPHABET,
71 };
72 
73 class AWS_POLLY_API PollyError : public Aws::Client::AWSError<PollyErrors>
74 {
75 public:
79  PollyError(const Aws::Client::AWSError<PollyErrors>& rhs) : Aws::Client::AWSError<PollyErrors>(rhs) {}
80  PollyError(Aws::Client::AWSError<PollyErrors>&& rhs) : Aws::Client::AWSError<PollyErrors>(rhs) {}
81 
82  template <typename T>
84 };
85 
86 namespace PollyErrorMapper
87 {
89 }
90 
91 } // namespace Polly
92 } // namespace Aws
Aws::Polly::PollyError::PollyError
PollyError(const Aws::Client::AWSError< PollyErrors > &rhs)
Definition: PollyErrors.h:79
CoreErrors.h
Aws::Polly::PollyError::PollyError
PollyError(Aws::Client::AWSError< Aws::Client::CoreErrors > &&rhs)
Definition: PollyErrors.h:78
AWSError.h
Aws::Polly::PollyErrors::UNKNOWN
@ UNKNOWN
Aws::Client::CoreErrors::INCOMPLETE_SIGNATURE
@ INCOMPLETE_SIGNATURE
Aws::Polly::PollyErrors::INCOMPLETE_SIGNATURE
@ INCOMPLETE_SIGNATURE
Polly_EXPORTS.h
AWS_POLLY_API
#define AWS_POLLY_API
Definition: Polly_EXPORTS.h:28
Aws::Polly::PollyErrorMapper::GetErrorForName
AWS_POLLY_API Aws::Client::AWSError< Aws::Client::CoreErrors > GetErrorForName(const char *errorName)
Aws::Polly::PollyError::PollyError
PollyError(Aws::Client::AWSError< PollyErrors > &&rhs)
Definition: PollyErrors.h:80
Aws::Client::AWSError
Definition: AWSError.h:42
Aws::Polly::PollyErrors
PollyErrors
Definition: PollyErrors.h:17
Aws::Polly::PollyError::PollyError
PollyError(const Aws::Client::AWSError< Aws::Client::CoreErrors > &rhs)
Definition: PollyErrors.h:77
Aws
Definition: AccessManagementClient.h:15
Aws::Polly::PollyError::GetModeledError
T GetModeledError()
Aws::Polly::PollyError::PollyError
PollyError()
Definition: PollyErrors.h:76
Aws::Polly::PollyError
Definition: PollyErrors.h:74