You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: error.go
    path of file: ./repos/awless/vendor/github.com/aws/aws-sdk-go/aws/awserr
    
    the code of the file until where you have to start completion: // Package awserr represents API error interface accessors for the SDK.

    
func New(code, message string, origErr error) Error {
	var errs []error
	if origErr != nil {
		errs = append(errs, origErr)
	}
	return newBaseError(code, message, errs)
}