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// You are not authorized to perform this action. 11type AccessDeniedException struct { 12 Message *string 13 14 noSmithyDocumentSerde 15} 16 17func (e *AccessDeniedException) Error() string { 18 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 19} 20func (e *AccessDeniedException) ErrorMessage() string { 21 if e.Message == nil { 22 return "" 23 } 24 return *e.Message 25} 26func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } 27func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 28 29// Unable to poll results for a cancelled query. 30type ConflictException struct { 31 Message *string 32 33 noSmithyDocumentSerde 34} 35 36func (e *ConflictException) Error() string { 37 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 38} 39func (e *ConflictException) ErrorMessage() string { 40 if e.Message == nil { 41 return "" 42 } 43 return *e.Message 44} 45func (e *ConflictException) ErrorCode() string { return "ConflictException" } 46func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 47 48// Timestream was unable to fully process this request because of an internal 49// server error. 50type InternalServerException struct { 51 Message *string 52 53 noSmithyDocumentSerde 54} 55 56func (e *InternalServerException) Error() string { 57 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 58} 59func (e *InternalServerException) ErrorMessage() string { 60 if e.Message == nil { 61 return "" 62 } 63 return *e.Message 64} 65func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } 66func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } 67 68// The requested endpoint was invalid. 69type InvalidEndpointException struct { 70 Message *string 71 72 noSmithyDocumentSerde 73} 74 75func (e *InvalidEndpointException) Error() string { 76 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 77} 78func (e *InvalidEndpointException) ErrorMessage() string { 79 if e.Message == nil { 80 return "" 81 } 82 return *e.Message 83} 84func (e *InvalidEndpointException) ErrorCode() string { return "InvalidEndpointException" } 85func (e *InvalidEndpointException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 86 87// Timestream was unable to run the query successfully. 88type QueryExecutionException struct { 89 Message *string 90 91 noSmithyDocumentSerde 92} 93 94func (e *QueryExecutionException) Error() string { 95 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 96} 97func (e *QueryExecutionException) ErrorMessage() string { 98 if e.Message == nil { 99 return "" 100 } 101 return *e.Message 102} 103func (e *QueryExecutionException) ErrorCode() string { return "QueryExecutionException" } 104func (e *QueryExecutionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 105 106// The request was denied due to request throttling. 107type ThrottlingException struct { 108 Message *string 109 110 noSmithyDocumentSerde 111} 112 113func (e *ThrottlingException) Error() string { 114 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 115} 116func (e *ThrottlingException) ErrorMessage() string { 117 if e.Message == nil { 118 return "" 119 } 120 return *e.Message 121} 122func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } 123func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 124 125// Invalid or malformed request. 126type ValidationException struct { 127 Message *string 128 129 noSmithyDocumentSerde 130} 131 132func (e *ValidationException) Error() string { 133 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 134} 135func (e *ValidationException) ErrorMessage() string { 136 if e.Message == nil { 137 return "" 138 } 139 return *e.Message 140} 141func (e *ValidationException) ErrorCode() string { return "ValidationException" } 142func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 143