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// Raised when a malformed input has been provided to the API.
11type BadRequestException struct {
12	Message *string
13}
14
15func (e *BadRequestException) Error() string {
16	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
17}
18func (e *BadRequestException) ErrorMessage() string {
19	if e.Message == nil {
20		return ""
21	}
22	return *e.Message
23}
24func (e *BadRequestException) ErrorCode() string             { return "BadRequestException" }
25func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
26
27// Raised when an unexpected error occurred during request processing.
28type InternalServerException struct {
29	Message *string
30}
31
32func (e *InternalServerException) Error() string {
33	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
34}
35func (e *InternalServerException) ErrorMessage() string {
36	if e.Message == nil {
37		return ""
38	}
39	return *e.Message
40}
41func (e *InternalServerException) ErrorCode() string             { return "InternalServerException" }
42func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer }
43
44// Raised when the requested resource cannot be found.
45type ResourceNotFoundException struct {
46	Message *string
47}
48
49func (e *ResourceNotFoundException) Error() string {
50	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
51}
52func (e *ResourceNotFoundException) ErrorMessage() string {
53	if e.Message == nil {
54		return ""
55	}
56	return *e.Message
57}
58func (e *ResourceNotFoundException) ErrorCode() string             { return "ResourceNotFoundException" }
59func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
60