forked from StellarCheckMate/Checkmate-Escrow
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherrors.rs
More file actions
27 lines (26 loc) · 623 Bytes
/
Copy patherrors.rs
File metadata and controls
27 lines (26 loc) · 623 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 {
MatchNotFound = 1,
AlreadyFunded = 2,
NotFunded = 3,
Unauthorized = 4,
InvalidState = 5,
AlreadyExists = 6,
AlreadyInitialized = 7,
Overflow = 8,
ContractPaused = 9,
InvalidAmount = 10,
MatchCancelled = 11,
MatchCompleted = 12,
DuplicateGameId = 13,
MatchNotExpired = 14,
InvalidGameId = 15,
InvalidPlayers = 16,
TokenNotAllowed = 17,
InvalidAddress = 18,
MatchAlreadyActive = 19,
InvalidTimeout = 20,
SnapshotNotFound = 21,
}