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