18 lines
355 B
Go
18 lines
355 B
Go
|
package v4a
|
||
|
|
||
|
import "fmt"
|
||
|
|
||
|
// SigningError indicates an error condition occurred while performing SigV4a signing
|
||
|
type SigningError struct {
|
||
|
Err error
|
||
|
}
|
||
|
|
||
|
func (e *SigningError) Error() string {
|
||
|
return fmt.Sprintf("failed to sign request: %v", e.Err)
|
||
|
}
|
||
|
|
||
|
// Unwrap returns the underlying error cause
|
||
|
func (e *SigningError) Unwrap() error {
|
||
|
return e.Err
|
||
|
}
|