Struct: token.Error

import "../ibm-cos-sdk-go/aws/credentials/ibmiam/token"

Overview

Error type to help parse errors of IAM calls

Implemented Interfaces

s3crypto.Cipher, s3manager.ReadSeekerWriteTo, s3manager.WriterReadFrom

Structure Field Summary collapse

Method Summary collapse

Structure Field Details

Context map[string]interface{} `json:"context"`

ErrorCode string `json:"errorCode"`

ErrorMessage string `json:"errorMessage"`

Method Details

func (ie *Error) Error() string

Error function



33
34
35
36
37
38
39
// File 'aws/credentials/ibmiam/token/token.go', line 33

func (ie *Error) Error() string { bytes, err := json.Marshal(ie) if err != nil { return err.Error() } return string(bytes) }