Flex
Flex exchange system
error_code.hpp
Go to the documentation of this file.
1 
7 #pragma once
8 
9 namespace tvm { namespace xchg {
10 
11 static constexpr unsigned ok = 0;
13 struct ec : tvm::error_code {
14  static constexpr unsigned out_of_tons = 100;
15  static constexpr unsigned deals_limit = 101;
16  static constexpr unsigned not_enough_tons_to_process = 102;
17  static constexpr unsigned not_enough_tokens_amount = 103;
18  static constexpr unsigned too_big_tokens_amount = 104;
19  static constexpr unsigned unverified_tip3_wallet = 105;
20  static constexpr unsigned canceled = 106;
21  static constexpr unsigned expired = 107;
22  static constexpr unsigned no_post_order_partially_done = 108;
23  static constexpr unsigned incorrect_price = 109;
24 
26 
28  static constexpr unsigned have_other_side_with_non_immediate_client = 110;
30 
32  static constexpr unsigned have_this_side_with_non_post_order = 111;
33 };
34 
35 }} // namespace tvm::xchg
36 
Error codes for PriceXchg.
Definition: error_code.hpp:13
static constexpr unsigned incorrect_price
Incorrect price.
Definition: error_code.hpp:23
static constexpr unsigned not_enough_tokens_amount
Not enough tokens amount.
Definition: error_code.hpp:17
static constexpr unsigned have_other_side_with_non_immediate_client
When an order without 'immediate_client' flag comes to a PriceXchg with enqueued orders of other side...
Definition: error_code.hpp:28
static constexpr unsigned canceled
Order is canceled.
Definition: error_code.hpp:20
static constexpr unsigned deals_limit
Partially processed because deals limit.
Definition: error_code.hpp:15
static constexpr unsigned have_this_side_with_non_post_order
When an order without 'post_order' flag comes to a PriceXchg with enqueued orders of this side.
Definition: error_code.hpp:32
static constexpr unsigned expired
Order is expired.
Definition: error_code.hpp:21
static constexpr unsigned not_enough_tons_to_process
Not enough native funds to process (crystals)
Definition: error_code.hpp:16
static constexpr unsigned too_big_tokens_amount
Too big calculated tokens amount.
Definition: error_code.hpp:18
static constexpr unsigned out_of_tons
Partially processed because out of tons.
Definition: error_code.hpp:14
static constexpr unsigned no_post_order_partially_done
Order without post-order flag is partially done.
Definition: error_code.hpp:22
static constexpr unsigned unverified_tip3_wallet
Unverified tip3 token wallet.
Definition: error_code.hpp:19