refactor: simply errors (#15067)
This commit is contained in:
+1
-1
@@ -5,7 +5,7 @@ import (
|
||||
"sort"
|
||||
"strings"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"cosmossdk.io/errors"
|
||||
)
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user