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 that an error occurred while processing the request and that the
11// request was not completed.
12type InternalServerError struct {
13	Message *string
14}
15
16func (e *InternalServerError) Error() string {
17	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
18}
19func (e *InternalServerError) ErrorMessage() string {
20	if e.Message == nil {
21		return ""
22	}
23	return *e.Message
24}
25func (e *InternalServerError) ErrorCode() string             { return "InternalServerError" }
26func (e *InternalServerError) ErrorFault() smithy.ErrorFault { return smithy.FaultServer }
27
28// This exception occurs when there is an internal failure in the Amazon EMR
29// service.
30type InternalServerException struct {
31	Message *string
32}
33
34func (e *InternalServerException) Error() string {
35	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
36}
37func (e *InternalServerException) ErrorMessage() string {
38	if e.Message == nil {
39		return ""
40	}
41	return *e.Message
42}
43func (e *InternalServerException) ErrorCode() string             { return "InternalServerException" }
44func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer }
45
46// This exception occurs when there is something wrong with user input.
47type InvalidRequestException struct {
48	Message *string
49
50	ErrorCode_ *string
51}
52
53func (e *InvalidRequestException) Error() string {
54	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
55}
56func (e *InvalidRequestException) ErrorMessage() string {
57	if e.Message == nil {
58		return ""
59	}
60	return *e.Message
61}
62func (e *InvalidRequestException) ErrorCode() string             { return "InvalidRequestException" }
63func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
64