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// Indicates a platform issue, which may be due to a transient condition or outage.
11type InternalServerException struct {
12	Message *string
13
14	noSmithyDocumentSerde
15}
16
17func (e *InternalServerException) Error() string {
18	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
19}
20func (e *InternalServerException) ErrorMessage() string {
21	if e.Message == nil {
22		return ""
23	}
24	return *e.Message
25}
26func (e *InternalServerException) ErrorCode() string             { return "InternalServerException" }
27func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer }
28
29// Indicates that something is wrong with the input to the request. For example, a
30// required parameter may be missing or out of range.
31type InvalidRequestException struct {
32	Message *string
33
34	AthenaErrorCode *string
35
36	noSmithyDocumentSerde
37}
38
39func (e *InvalidRequestException) Error() string {
40	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
41}
42func (e *InvalidRequestException) ErrorMessage() string {
43	if e.Message == nil {
44		return ""
45	}
46	return *e.Message
47}
48func (e *InvalidRequestException) ErrorCode() string             { return "InvalidRequestException" }
49func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
50
51// An exception that Athena received when it called a custom metastore. Occurs if
52// the error is not caused by user input (InvalidRequestException) or from the
53// Athena platform (InternalServerException). For example, if a user-created Lambda
54// function is missing permissions, the Lambda 4XX exception is returned in a
55// MetadataException.
56type MetadataException struct {
57	Message *string
58
59	noSmithyDocumentSerde
60}
61
62func (e *MetadataException) Error() string {
63	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
64}
65func (e *MetadataException) ErrorMessage() string {
66	if e.Message == nil {
67		return ""
68	}
69	return *e.Message
70}
71func (e *MetadataException) ErrorCode() string             { return "MetadataException" }
72func (e *MetadataException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
73
74// A resource, such as a workgroup, was not found.
75type ResourceNotFoundException struct {
76	Message *string
77
78	ResourceName *string
79
80	noSmithyDocumentSerde
81}
82
83func (e *ResourceNotFoundException) Error() string {
84	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
85}
86func (e *ResourceNotFoundException) ErrorMessage() string {
87	if e.Message == nil {
88		return ""
89	}
90	return *e.Message
91}
92func (e *ResourceNotFoundException) ErrorCode() string             { return "ResourceNotFoundException" }
93func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
94
95// Indicates that the request was throttled.
96type TooManyRequestsException struct {
97	Message *string
98
99	Reason ThrottleReason
100
101	noSmithyDocumentSerde
102}
103
104func (e *TooManyRequestsException) Error() string {
105	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
106}
107func (e *TooManyRequestsException) ErrorMessage() string {
108	if e.Message == nil {
109		return ""
110	}
111	return *e.Message
112}
113func (e *TooManyRequestsException) ErrorCode() string             { return "TooManyRequestsException" }
114func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
115