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// Returns information about an error.
11type BadRequestException struct {
12	Message *string
13
14	ErrorAttribute *string
15}
16
17func (e *BadRequestException) Error() string {
18	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
19}
20func (e *BadRequestException) ErrorMessage() string {
21	if e.Message == nil {
22		return ""
23	}
24	return *e.Message
25}
26func (e *BadRequestException) ErrorCode() string             { return "BadRequestException" }
27func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
28
29// Returns information about an error.
30type ConflictException struct {
31	Message *string
32
33	ErrorAttribute *string
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// Returns information about an error.
49type ForbiddenException struct {
50	Message *string
51
52	ErrorAttribute *string
53}
54
55func (e *ForbiddenException) Error() string {
56	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
57}
58func (e *ForbiddenException) ErrorMessage() string {
59	if e.Message == nil {
60		return ""
61	}
62	return *e.Message
63}
64func (e *ForbiddenException) ErrorCode() string             { return "ForbiddenException" }
65func (e *ForbiddenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
66
67// Returns information about an error.
68type InternalServerErrorException struct {
69	Message *string
70
71	ErrorAttribute *string
72}
73
74func (e *InternalServerErrorException) Error() string {
75	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
76}
77func (e *InternalServerErrorException) ErrorMessage() string {
78	if e.Message == nil {
79		return ""
80	}
81	return *e.Message
82}
83func (e *InternalServerErrorException) ErrorCode() string             { return "InternalServerErrorException" }
84func (e *InternalServerErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer }
85
86// Returns information about an error.
87type NotFoundException struct {
88	Message *string
89
90	ErrorAttribute *string
91}
92
93func (e *NotFoundException) Error() string {
94	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
95}
96func (e *NotFoundException) ErrorMessage() string {
97	if e.Message == nil {
98		return ""
99	}
100	return *e.Message
101}
102func (e *NotFoundException) ErrorCode() string             { return "NotFoundException" }
103func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
104
105// Returns information about an error.
106type UnauthorizedException struct {
107	Message *string
108
109	ErrorAttribute *string
110}
111
112func (e *UnauthorizedException) Error() string {
113	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
114}
115func (e *UnauthorizedException) ErrorMessage() string {
116	if e.Message == nil {
117		return ""
118	}
119	return *e.Message
120}
121func (e *UnauthorizedException) ErrorCode() string             { return "UnauthorizedException" }
122func (e *UnauthorizedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
123