forked from StellarSplit/StellarSplit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherrors.rs
More file actions
27 lines (24 loc) · 659 Bytes
/
Copy patherrors.rs
File metadata and controls
27 lines (24 loc) · 659 Bytes
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
use soroban_sdk::contracterror;
#[contracterror]
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
pub enum Error {
AlreadyInitialized = 1,
NotInitialized = 2,
Unauthorized = 3,
InvalidAmount = 4,
InvalidFeeBps = 5,
SplitNotFound = 6,
SplitNotPending = 7,
SplitNotReady = 8,
TreasuryNotSet = 9,
/// The maximum number of participants for this escrow has been reached.
ParticipantCapExceeded = 10,
InvalidVersion = 11,
InvalidInput = 12,
EscrowNotActive = 13,
SplitNotActive = 14,
InvalidMetadata = 15,
ParticipantNotOwed = 16,
InsufficientFulfillment = 17,
TotalAmountMismatch = 18,
}