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

package types

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

type ItemNotFound struct {
	Message *string

	ErrorCodeOverride *string

	noSmithyDocumentSerde
}

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