Electroneum
Loading...
Searching...
No Matches
wallet_rpc_server_error_codes.h
Go to the documentation of this file.
1// Copyrights(c) 2017-2021, The Electroneum Project
2// Copyrights(c) 2014-2019, The Monero Project
3//
4// All rights reserved.
5//
6// Redistribution and use in source and binary forms, with or without modification, are
7// permitted provided that the following conditions are met:
8//
9// 1. Redistributions of source code must retain the above copyright notice, this list of
10// conditions and the following disclaimer.
11//
12// 2. Redistributions in binary form must reproduce the above copyright notice, this list
13// of conditions and the following disclaimer in the documentation and/or other
14// materials provided with the distribution.
15//
16// 3. Neither the name of the copyright holder nor the names of its contributors may be
17// used to endorse or promote products derived from this software without specific
18// prior written permission.
19//
20// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
21// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
22// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
23// THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
25// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
27// STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
28// THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29//
30// Parts of this file are originally copyright (c) 2012-2013 The Cryptonote developers
31
32#pragma once
33
34
35#define WALLET_RPC_ERROR_CODE_UNKNOWN_ERROR -1
36#define WALLET_RPC_ERROR_CODE_WRONG_ADDRESS -2
37#define WALLET_RPC_ERROR_CODE_DAEMON_IS_BUSY -3
38#define WALLET_RPC_ERROR_CODE_GENERIC_TRANSFER_ERROR -4
39#define WALLET_RPC_ERROR_CODE_WRONG_PAYMENT_ID -5
40#define WALLET_RPC_ERROR_CODE_TRANSFER_TYPE -6
41#define WALLET_RPC_ERROR_CODE_DENIED -7
42#define WALLET_RPC_ERROR_CODE_WRONG_TXID -8
43#define WALLET_RPC_ERROR_CODE_WRONG_SIGNATURE -9
44#define WALLET_RPC_ERROR_CODE_WRONG_KEY_IMAGE -10
45#define WALLET_RPC_ERROR_CODE_WRONG_URI -11
46#define WALLET_RPC_ERROR_CODE_WRONG_INDEX -12
47#define WALLET_RPC_ERROR_CODE_NOT_OPEN -13
48#define WALLET_RPC_ERROR_CODE_ACCOUNT_INDEX_OUT_OF_BOUNDS -14
49#define WALLET_RPC_ERROR_CODE_ADDRESS_INDEX_OUT_OF_BOUNDS -15
50#define WALLET_RPC_ERROR_CODE_TX_NOT_POSSIBLE -16
51#define WALLET_RPC_ERROR_CODE_NOT_ENOUGH_ETN -17
52#define WALLET_RPC_ERROR_CODE_TX_TOO_LARGE -18
53#define WALLET_RPC_ERROR_CODE_NOT_ENOUGH_OUTS_TO_MIX -19
54#define WALLET_RPC_ERROR_CODE_ZERO_DESTINATION -20
55#define WALLET_RPC_ERROR_CODE_WALLET_ALREADY_EXISTS -21
56#define WALLET_RPC_ERROR_CODE_INVALID_PASSWORD -22
57#define WALLET_RPC_ERROR_CODE_NO_WALLET_DIR -23
58#define WALLET_RPC_ERROR_CODE_NO_TXKEY -24
59#define WALLET_RPC_ERROR_CODE_WRONG_KEY -25
60#define WALLET_RPC_ERROR_CODE_BAD_HEX -26
61#define WALLET_RPC_ERROR_CODE_BAD_TX_METADATA -27
62#define WALLET_RPC_ERROR_CODE_ALREADY_MULTISIG -28
63#define WALLET_RPC_ERROR_CODE_WATCH_ONLY -29
64#define WALLET_RPC_ERROR_CODE_BAD_MULTISIG_INFO -30
65#define WALLET_RPC_ERROR_CODE_NOT_MULTISIG -31
66#define WALLET_RPC_ERROR_CODE_WRONG_LR -32
67#define WALLET_RPC_ERROR_CODE_THRESHOLD_NOT_REACHED -33
68#define WALLET_RPC_ERROR_CODE_BAD_MULTISIG_TX_DATA -34
69#define WALLET_RPC_ERROR_CODE_MULTISIG_SIGNATURE -35
70#define WALLET_RPC_ERROR_CODE_MULTISIG_SUBMISSION -36
71#define WALLET_RPC_ERROR_CODE_NOT_ENOUGH_UNLOCKED_ETN -37
72#define WALLET_RPC_ERROR_CODE_NO_DAEMON_CONNECTION -38
73#define WALLET_RPC_ERROR_CODE_BAD_UNSIGNED_TX_DATA -39
74#define WALLET_RPC_ERROR_CODE_BAD_SIGNED_TX_DATA -40
75#define WALLET_RPC_ERROR_CODE_SIGNED_SUBMISSION -41
76#define WALLET_RPC_ERROR_CODE_SIGN_UNSIGNED -42
77#define WALLET_RPC_ERROR_CODE_NON_DETERMINISTIC -43
78#define WALLET_RPC_ERROR_CODE_INVALID_LOG_LEVEL -44