errors

package
v1.0.0-beta.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 14, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
	Str string
	Err error
}

Error is a base error that implement scw.SdkError

func New

func New(format string, args ...interface{}) *Error

New creates a new error with that same interface as fmt.Errorf

func Wrap

func Wrap(err error, format string, args ...interface{}) *Error

Wrap an error with additional information

func (*Error) Error

func (e *Error) Error() string

Error implement standard error interface

func (*Error) IsScwSdkError

func (e *Error) IsScwSdkError()

IsScwSdkError implement SdkError interface

func (*Error) Unwrap

func (e *Error) Unwrap() error

Error implement standard xerror.Wrapper interface

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL