Skip to content
Snippets Groups Projects
Commit e27aa7c5 authored by Levente Pap's avatar Levente Pap
Browse files

Merge branch 'develop' into refactor/message_structure

parents a9baf885 9e000bb8
No related branches found
No related tags found
No related merge requests found
// Package cerrors provides sentinel error values for common errors that are likely to appear in multiple packages.
//
// Since wrapping errors using the new error handling API of Go creates anonymous errors it is not possible to wrap an
// existing sentinel error with another sentinel error without loosing the stack trace.
//
// Using shared sentinel errors enables them to be annotated and used across packages borders without the caller having
// to distinguish between similar errors types of different packages that would otherwise be identical.
package cerrors
import "errors"
var (
// ErrBase58DecodeFailed is returned if a base58 encoded string can not be decoded.
ErrBase58DecodeFailed = errors.New("failed to decode base58 encoded string")
// ErrParseBytesFailed is returned if information can not be parsed from a sequence of bytes.
ErrParseBytesFailed = errors.New("failed to parse bytes")
)
package payload
import (
"github.com/iotaledger/goshimmer/packages/cerrors"
"github.com/iotaledger/hive.go/cerrors"
"github.com/iotaledger/hive.go/marshalutil"
"github.com/iotaledger/hive.go/stringify"
"golang.org/x/xerrors"
......
......@@ -3,7 +3,7 @@ package payload
import (
"fmt"
"github.com/iotaledger/goshimmer/packages/cerrors"
"github.com/iotaledger/hive.go/cerrors"
"github.com/iotaledger/hive.go/marshalutil"
"golang.org/x/xerrors"
)
......
......@@ -5,7 +5,7 @@ import (
"strconv"
"sync"
"github.com/iotaledger/goshimmer/packages/cerrors"
"github.com/iotaledger/hive.go/cerrors"
"github.com/iotaledger/hive.go/marshalutil"
"golang.org/x/xerrors"
)
......
......@@ -4,7 +4,7 @@ import (
"context"
"crypto"
"github.com/iotaledger/goshimmer/packages/cerrors"
"github.com/iotaledger/hive.go/cerrors"
"golang.org/x/xerrors"
// Only want to use init
......@@ -19,7 +19,7 @@ import (
)
const (
// ObjectName defines the name of the facuet object (payload).
// ObjectName defines the name of the faucet object (payload).
ObjectName = "faucet"
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment