Struct: endpoints.UnknownServiceError

import "../ibm-cos-sdk-go/aws/endpoints"

Overview

A UnknownServiceError is returned when the service does not resolve to an endpoint. Includes a list of all known services for the partition. Returned when a partition does not support the service.

Implemented Interfaces

s3crypto.Cipher, s3manager.ReadSeekerWriteTo, s3manager.WriterReadFrom

Structure Field Summary collapse

Method Summary collapse

Structure Field Details

Known []string

Partition string

Service string

Method Details

func (e UnknownServiceError) Error() string

String returns the string representation of the error.



545
546
547
548
549
550
551
552
// File 'aws/endpoints/endpoints.go', line 545

func (e UnknownServiceError) Error() string { extra := fmt.Sprintf("partition: %q, service: %q", e.Partition, e.Service) if len(e.Known) > 0 { extra += fmt.Sprintf(", known: %v", e.Known) } return awserr.SprintError(e.Code(), e.Message(), extra, e.OrigErr()) }

func (e UnknownServiceError) String() string

String returns the string representation of the error.



555
556
557
// File 'aws/endpoints/endpoints.go', line 555

func (e UnknownServiceError) String() string { return e.Error() }