errors.gno
1.10 Kb · 26 lines
1package limit
2
3// Proxy errors carry no error code; codes belong to the implementation.
4
5// ErrSpoofedRealm is returned when a store write gets a non-current realm.
6const ErrSpoofedRealm = "spoofed realm"
7
8// ErrNilInitializer is raised by RegisterInitializer for a nil factory.
9const ErrNilInitializer = "nil initializer"
10
11const (
12 errImplNotInitialized = "implementation is not initialized"
13 errInvalidImpl = "impl is not an ILimitOrder"
14 errInvalidDomainStore = "domainStore is not an ILimitOrderStore"
15 errNilConfig = "config is nil"
16 errImplDoesNotSupportTargetedCleanup = "implementation does not support targeted expired-order cleanup"
17 errImplDoesNotSupportFeeCollection = "implementation does not support pending execution fee collection"
18
19 // errInvalidSwapCallback is returned by an order's swap callback for a
20 // call it must not pay.
21 errInvalidSwapCallback = "invalid swap callback"
22
23 // Format strings: the store key name, the config value.
24 errNilValue = "%s is nil"
25 errInvalidConfigType = "failed to cast config: %T"
26)