1// Code generated by smithy-go-codegen DO NOT EDIT. 2 3package types 4 5import ( 6 "fmt" 7 smithy "github.com/aws/smithy-go" 8) 9 10// Either the Amazon Lex bot is still building, or one of the dependent services 11// (Amazon Polly, AWS Lambda) failed with an internal service error. 12type BadGatewayException struct { 13 Message *string 14} 15 16func (e *BadGatewayException) Error() string { 17 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 18} 19func (e *BadGatewayException) ErrorMessage() string { 20 if e.Message == nil { 21 return "" 22 } 23 return *e.Message 24} 25func (e *BadGatewayException) ErrorCode() string { return "BadGatewayException" } 26func (e *BadGatewayException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } 27 28// Request validation failed, there is no usable message in the context, or the bot 29// build failed, is still in progress, or contains unbuilt changes. 30type BadRequestException struct { 31 Message *string 32} 33 34func (e *BadRequestException) Error() string { 35 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 36} 37func (e *BadRequestException) ErrorMessage() string { 38 if e.Message == nil { 39 return "" 40 } 41 return *e.Message 42} 43func (e *BadRequestException) ErrorCode() string { return "BadRequestException" } 44func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 45 46// Two clients are using the same AWS account, Amazon Lex bot, and user ID. 47type ConflictException struct { 48 Message *string 49} 50 51func (e *ConflictException) Error() string { 52 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 53} 54func (e *ConflictException) ErrorMessage() string { 55 if e.Message == nil { 56 return "" 57 } 58 return *e.Message 59} 60func (e *ConflictException) ErrorCode() string { return "ConflictException" } 61func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 62 63// One of the dependencies, such as AWS Lambda or Amazon Polly, threw an exception. 64// For example, 65// 66// * If Amazon Lex does not have sufficient permissions to call a 67// Lambda function. 68// 69// * If a Lambda function takes longer than 30 seconds to 70// execute. 71// 72// * If a fulfillment Lambda function returns a Delegate dialog action 73// without removing any slot values. 74type DependencyFailedException struct { 75 Message *string 76} 77 78func (e *DependencyFailedException) Error() string { 79 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 80} 81func (e *DependencyFailedException) ErrorMessage() string { 82 if e.Message == nil { 83 return "" 84 } 85 return *e.Message 86} 87func (e *DependencyFailedException) ErrorCode() string { return "DependencyFailedException" } 88func (e *DependencyFailedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 89 90// Internal service error. Retry the call. 91type InternalFailureException struct { 92 Message *string 93} 94 95func (e *InternalFailureException) Error() string { 96 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 97} 98func (e *InternalFailureException) ErrorMessage() string { 99 if e.Message == nil { 100 return "" 101 } 102 return *e.Message 103} 104func (e *InternalFailureException) ErrorCode() string { return "InternalFailureException" } 105func (e *InternalFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } 106 107// Exceeded a limit. 108type LimitExceededException struct { 109 Message *string 110 111 RetryAfterSeconds *string 112} 113 114func (e *LimitExceededException) Error() string { 115 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 116} 117func (e *LimitExceededException) ErrorMessage() string { 118 if e.Message == nil { 119 return "" 120 } 121 return *e.Message 122} 123func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } 124func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 125 126// This exception is not used. 127type LoopDetectedException struct { 128 Message *string 129} 130 131func (e *LoopDetectedException) Error() string { 132 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 133} 134func (e *LoopDetectedException) ErrorMessage() string { 135 if e.Message == nil { 136 return "" 137 } 138 return *e.Message 139} 140func (e *LoopDetectedException) ErrorCode() string { return "LoopDetectedException" } 141func (e *LoopDetectedException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } 142 143// The accept header in the request does not have a valid value. 144type NotAcceptableException struct { 145 Message *string 146} 147 148func (e *NotAcceptableException) Error() string { 149 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 150} 151func (e *NotAcceptableException) ErrorMessage() string { 152 if e.Message == nil { 153 return "" 154 } 155 return *e.Message 156} 157func (e *NotAcceptableException) ErrorCode() string { return "NotAcceptableException" } 158func (e *NotAcceptableException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 159 160// The resource (such as the Amazon Lex bot or an alias) that is referred to is not 161// found. 162type NotFoundException struct { 163 Message *string 164} 165 166func (e *NotFoundException) Error() string { 167 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 168} 169func (e *NotFoundException) ErrorMessage() string { 170 if e.Message == nil { 171 return "" 172 } 173 return *e.Message 174} 175func (e *NotFoundException) ErrorCode() string { return "NotFoundException" } 176func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 177 178// The input speech is too long. 179type RequestTimeoutException struct { 180 Message *string 181} 182 183func (e *RequestTimeoutException) Error() string { 184 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 185} 186func (e *RequestTimeoutException) ErrorMessage() string { 187 if e.Message == nil { 188 return "" 189 } 190 return *e.Message 191} 192func (e *RequestTimeoutException) ErrorCode() string { return "RequestTimeoutException" } 193func (e *RequestTimeoutException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 194 195// The Content-Type header (PostContent API) has an invalid value. 196type UnsupportedMediaTypeException struct { 197 Message *string 198} 199 200func (e *UnsupportedMediaTypeException) Error() string { 201 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 202} 203func (e *UnsupportedMediaTypeException) ErrorMessage() string { 204 if e.Message == nil { 205 return "" 206 } 207 return *e.Message 208} 209func (e *UnsupportedMediaTypeException) ErrorCode() string { return "UnsupportedMediaTypeException" } 210func (e *UnsupportedMediaTypeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 211