package smithy

Import Path
	github.com/aws/smithy-go (on go.dev)

Dependency Relation
	imports 3 packages, and imported by 7 packages

Involved Source Files Package smithy provides the core components for a Smithy SDK. document.go errors.go go_module_metadata.go validation.go
Package-Level Type Names (total 12, in which 11 are exported)
/* sort exporteds by: | */
APIError provides the generic API and protocol agnostic error type all SDK generated exception types will implement. ( APIError) Error() builtin.string ErrorCode returns the error code for the API exception. ErrorFault returns the fault for the API exception. ErrorMessage returns the error message for the API exception. *GenericAPIError *github.com/aws/aws-sdk-go-v2/service/s3/types.BucketAlreadyExists *github.com/aws/aws-sdk-go-v2/service/s3/types.BucketAlreadyOwnedByYou *github.com/aws/aws-sdk-go-v2/service/s3/types.InvalidObjectState *github.com/aws/aws-sdk-go-v2/service/s3/types.NoSuchBucket *github.com/aws/aws-sdk-go-v2/service/s3/types.NoSuchKey *github.com/aws/aws-sdk-go-v2/service/s3/types.NoSuchUpload *github.com/aws/aws-sdk-go-v2/service/s3/types.NotFound *github.com/aws/aws-sdk-go-v2/service/s3/types.ObjectAlreadyInActiveTierError *github.com/aws/aws-sdk-go-v2/service/s3/types.ObjectNotInActiveTierError APIError : error
CanceledError is the error that will be returned by an API request that was canceled. API operations given a Context may return this error when canceled. Err error CanceledError returns true to satisfy interfaces checking for canceled errors. (*CanceledError) Error() string Unwrap returns the underlying error, if there was one. *CanceledError : error
DeserializationError provides a wrapper for an error that occurs during deserialization. // original error Snapshot []byte Error returns a formatted error for DeserializationError Unwrap returns the underlying Error in DeserializationError *DeserializationError : error
Document provides access to loosely structured data in a document-like format. Deprecated: See the github.com/aws/smithy-go/document package. ( Document) GetValue() (interface{}, error) ( Document) UnmarshalDocument(interface{}) error
ErrorFault provides the type for a Smithy API error fault. ( ErrorFault) String() string ErrorFault : expvar.Var ErrorFault : fmt.Stringer func APIError.ErrorFault() ErrorFault func (*GenericAPIError).ErrorFault() ErrorFault func github.com/aws/aws-sdk-go-v2/service/s3/types.(*BucketAlreadyExists).ErrorFault() ErrorFault func github.com/aws/aws-sdk-go-v2/service/s3/types.(*BucketAlreadyOwnedByYou).ErrorFault() ErrorFault func github.com/aws/aws-sdk-go-v2/service/s3/types.(*InvalidObjectState).ErrorFault() ErrorFault func github.com/aws/aws-sdk-go-v2/service/s3/types.(*NoSuchBucket).ErrorFault() ErrorFault func github.com/aws/aws-sdk-go-v2/service/s3/types.(*NoSuchKey).ErrorFault() ErrorFault func github.com/aws/aws-sdk-go-v2/service/s3/types.(*NoSuchUpload).ErrorFault() ErrorFault func github.com/aws/aws-sdk-go-v2/service/s3/types.(*NotFound).ErrorFault() ErrorFault func github.com/aws/aws-sdk-go-v2/service/s3/types.(*ObjectAlreadyInActiveTierError).ErrorFault() ErrorFault func github.com/aws/aws-sdk-go-v2/service/s3/types.(*ObjectNotInActiveTierError).ErrorFault() ErrorFault const FaultClient const FaultServer const FaultUnknown
GenericAPIError provides a generic concrete API error type that SDKs can use to deserialize error responses into. Should be used for unmodeled or untyped errors. Code string Fault ErrorFault Message string (*GenericAPIError) Error() string ErrorCode returns the error code for the API exception. ErrorFault returns the fault for the API exception. ErrorMessage returns the error message for the API exception. *GenericAPIError : APIError *GenericAPIError : error
An InvalidParamError represents an invalid parameter error type. AddNestedContext updates the error's context to include a nested level. ( InvalidParamError) Error() builtin.string Field name the error occurred on. SetContext updates the context of the error. *ParamRequiredError InvalidParamError : error func (*InvalidParamsError).Add(err InvalidParamError)
An InvalidParamsError provides wrapping of invalid parameter errors found when validating API operation input parameters. Context is the base context of the invalid parameter group. Add adds a new invalid parameter error to the collection of invalid parameters. The context of the invalid parameter will be updated to reflect this collection. AddNested adds the invalid parameter errors from another InvalidParamsError value into this collection. The nested errors will have their nested context updated and base context to reflect the merging. Use for nested validations errors. Error returns the string formatted form of the invalid parameters. Errs returns a slice of the invalid parameters Len returns the number of invalid parameter errors InvalidParamsError : error func (*InvalidParamsError).AddNested(nestedCtx string, nested InvalidParamsError)
OperationError decorates an underlying error which occurred while invoking an operation with names of the operation and API. Err error OperationName string ServiceID string (*OperationError) Error() string Operation returns the name of the API operation the error occurred with. Service returns the name of the API service the error occurred with. Unwrap returns the nested error if any, or nil. *OperationError : error
An ParamRequiredError represents an required parameter error. AddNestedContext prepends a context to the field's path. Error returns the string version of the invalid parameter error. Field Returns the field and context the error occurred. SetContext updates the base context of the error. *ParamRequiredError : InvalidParamError ParamRequiredError : error func NewErrParamRequired(field string) *ParamRequiredError
SerializationError represents an error that occurred while attempting to serialize a request Err error Error returns a formatted error for SerializationError Unwrap returns the underlying Error in SerializationError *SerializationError : error
Package-Level Functions (only one, which is exported)
NewErrParamRequired creates a new required parameter error.
Package-Level Constants (total 4, in which 3 are exported)
ErrorFault enumeration values
ErrorFault enumeration values
ErrorFault enumeration values