refactor: simply errors (#15067)

This commit is contained in:
Julien Robert
2023-02-20 12:03:40 +00:00
committed by GitHub
parent f69b9ff58f
commit 067ee92d4d
51 changed files with 391 additions and 160 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"sort"
"strings"
"github.com/pkg/errors"
"cosmossdk.io/errors"
)
// ----------------------------------------------------------------------------
-28
View File
@@ -4,34 +4,6 @@ import (
errorsmod "cosmossdk.io/errors"
)
// Type Aliases to errors module
//
// Deprecated: functionality of this package has been moved to it's own module:
//
// cosmossdk.io/errors
//
// Please use the above module instead of this package.
var (
SuccessABCICode = errorsmod.SuccessABCICode
ABCIInfo = errorsmod.ABCIInfo
UndefinedCodespace = errorsmod.UndefinedCodespace
Register = errorsmod.Register
ABCIError = errorsmod.ABCIError
New = errorsmod.New
Wrap = errorsmod.Wrap
Wrapf = errorsmod.Wrapf
Recover = errorsmod.Recover
WithType = errorsmod.WithType
IsOf = errorsmod.IsOf
AssertNil = errorsmod.AssertNil
)
// Error type alias for errorsmod.Error
//
// Deprecated: the type has been moved to cosmossdk.io/errors
// module. Please use the above module instead of this package.
type Error = errorsmod.Error
// RootCodespace is the codespace for all errors defined in this package
const RootCodespace = "sdk"