-
Notifications
You must be signed in to change notification settings - Fork 29
/
errors.go
36 lines (28 loc) · 1.07 KB
/
errors.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package magmasc
import (
"github.com/0chain/gosdk/zmagmacore/errors"
)
const (
errCodeBadRequest = "bad_request"
errCodeInvalid = "invalid_error"
)
var (
// errDecodeData represents an error
// that decode data was failed.
errDecodeData = errors.New("decode_error", "decode error")
// errInvalidAcknowledgment represents an error
// that an acknowledgment was invalidated.
errInvalidAcknowledgment = errors.New(errCodeInvalid, "invalid acknowledgment")
// errInvalidConsumer represents an error
// that consumer was invalidated.
errInvalidConsumer = errors.New(errCodeInvalid, "invalid consumer")
// errInvalidDataUsage represents an error
// that a data usage was invalidated.
errInvalidDataUsage = errors.New(errCodeInvalid, "invalid data usage")
// errInvalidProvider represents an error
// that provider was invalidated.
errInvalidProvider = errors.New(errCodeInvalid, "invalid provider")
// errInvalidProviderTerms represents an error
// that provider terms was invalidated.
errInvalidProviderTerms = errors.New(errCodeInvalid, "invalid provider terms")
)