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// An internal server error has occurred during the request. For more information,
11// see the error and message fields.
12type InternalServerError struct {
13	Message *string
14
15	Error_ *StorageGatewayError
16}
17
18func (e *InternalServerError) Error() string {
19	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
20}
21func (e *InternalServerError) ErrorMessage() string {
22	if e.Message == nil {
23		return ""
24	}
25	return *e.Message
26}
27func (e *InternalServerError) ErrorCode() string             { return "InternalServerError" }
28func (e *InternalServerError) ErrorFault() smithy.ErrorFault { return smithy.FaultServer }
29
30// An exception occurred because an invalid gateway request was issued to the
31// service. For more information, see the error and message fields.
32type InvalidGatewayRequestException struct {
33	Message *string
34
35	Error_ *StorageGatewayError
36}
37
38func (e *InvalidGatewayRequestException) Error() string {
39	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
40}
41func (e *InvalidGatewayRequestException) ErrorMessage() string {
42	if e.Message == nil {
43		return ""
44	}
45	return *e.Message
46}
47func (e *InvalidGatewayRequestException) ErrorCode() string             { return "InvalidGatewayRequestException" }
48func (e *InvalidGatewayRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
49
50// An internal server error has occurred because the service is unavailable. For
51// more information, see the error and message fields.
52type ServiceUnavailableError struct {
53	Message *string
54
55	Error_ *StorageGatewayError
56}
57
58func (e *ServiceUnavailableError) Error() string {
59	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
60}
61func (e *ServiceUnavailableError) ErrorMessage() string {
62	if e.Message == nil {
63		return ""
64	}
65	return *e.Message
66}
67func (e *ServiceUnavailableError) ErrorCode() string             { return "ServiceUnavailableError" }
68func (e *ServiceUnavailableError) ErrorFault() smithy.ErrorFault { return smithy.FaultServer }
69