// Code generated by smithy-go-codegen DO NOT EDIT.

package types

import (
	"fmt"
	smithy "github.com/aws/smithy-go"
)

type CustomCodeError struct {
	Message *string

	ErrorCodeOverride *string

	noSmithyDocumentSerde
}

func (e *CustomCodeError) Error() string {
	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *CustomCodeError) ErrorMessage() string {
	if e.Message == nil {
		return ""
	}
	return *e.Message
}
func (e *CustomCodeError) ErrorCode() string {
	if e == nil || e.ErrorCodeOverride == nil {
		return "CustomCodeError"
	}
	return *e.ErrorCodeOverride
}
func (e *CustomCodeError) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }

type NoCustomCodeError struct {
	Message *string

	ErrorCodeOverride *string

	noSmithyDocumentSerde
}

func (e *NoCustomCodeError) Error() string {
	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *NoCustomCodeError) ErrorMessage() string {
	if e.Message == nil {
		return ""
	}
	return *e.Message
}
func (e *NoCustomCodeError) ErrorCode() string {
	if e == nil || e.ErrorCodeOverride == nil {
		return "NoCustomCodeError"
	}
	return *e.ErrorCodeOverride
}
func (e *NoCustomCodeError) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
