src

Go monorepo.
git clone git://code.dwrz.net/src
Log | Files | Refs

error.go (355B)


      1 package v4a
      2 
      3 import "fmt"
      4 
      5 // SigningError indicates an error condition occurred while performing SigV4a signing
      6 type SigningError struct {
      7 	Err error
      8 }
      9 
     10 func (e *SigningError) Error() string {
     11 	return fmt.Sprintf("failed to sign request: %v", e.Err)
     12 }
     13 
     14 // Unwrap returns the underlying error cause
     15 func (e *SigningError) Unwrap() error {
     16 	return e.Err
     17 }