rippled
TER.cpp
1 //------------------------------------------------------------------------------
2 /*
3  This file is part of rippled: https://github.com/ripple/rippled
4  Copyright (c) 2012, 2013 Ripple Labs Inc.
5 
6  Permission to use, copy, modify, and/or distribute this software for any
7  purpose with or without fee is hereby granted, provided that the above
8  copyright notice and this permission notice appear in all copies.
9 
10  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11  WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12  MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13  ANY SPECIAL , DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14  WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15  ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16  OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 */
18 //==============================================================================
19 
20 #include <ripple/protocol/TER.h>
21 #include <boost/range/adaptor/transformed.hpp>
22 #include <type_traits>
23 #include <unordered_map>
24 
25 namespace ripple {
26 
27 namespace detail {
28 
29 static std::unordered_map<
33 {
34  static std::unordered_map<
37  {tecCLAIM, {"tecCLAIM", "Fee claimed. Sequence used. No action."}},
38  {tecDIR_FULL, {"tecDIR_FULL", "Can not add entry to full directory."}},
40  {"tecFAILED_PROCESSING", "Failed to correctly process transaction."}},
42  {"tecINSUF_RESERVE_LINE", "Insufficient reserve to add trust line."}},
44  {"tecINSUF_RESERVE_OFFER", "Insufficient reserve to create offer."}},
45  {tecNO_DST,
46  {"tecNO_DST", "Destination does not exist. Send XRP to create it."}},
48  {"tecNO_DST_INSUF_XRP",
49  "Destination does not exist. Too little XRP sent to create it."}},
51  {"tecNO_LINE_INSUF_RESERVE",
52  "No such line. Too little reserve to create it."}},
54  {"tecNO_LINE_REDUNDANT", "Can't set non-existent line to default."}},
55  {tecPATH_DRY, {"tecPATH_DRY", "Path could not send partial amount."}},
57  {"tecPATH_PARTIAL", "Path could not send full amount."}},
59  {"tecNO_ALTERNATIVE_KEY",
60  "The operation would remove the ability to sign transactions with "
61  "the account."}},
62  {tecNO_REGULAR_KEY, {"tecNO_REGULAR_KEY", "Regular key is not set."}},
63  {tecOVERSIZE, {"tecOVERSIZE", "Object exceeded serialization limits."}},
64  {tecUNFUNDED,
65  {"tecUNFUNDED", "One of _ADD, _OFFER, or _SEND. Deprecated."}},
67  {"tecUNFUNDED_ADD", "Insufficient XRP balance for WalletAdd."}},
69  {"tecUNFUNDED_OFFER", "Insufficient balance to fund created offer."}},
71  {"tecUNFUNDED_PAYMENT", "Insufficient XRP balance to send."}},
72  {tecOWNERS, {"tecOWNERS", "Non-zero owner count."}},
73  {tecNO_ISSUER, {"tecNO_ISSUER", "Issuer account does not exist."}},
74  {tecNO_AUTH, {"tecNO_AUTH", "Not authorized to hold asset."}},
75  {tecNO_LINE, {"tecNO_LINE", "No such line."}},
76  {tecINSUFF_FEE, {"tecINSUFF_FEE", "Insufficient balance to pay fee."}},
77  {tecFROZEN, {"tecFROZEN", "Asset is frozen."}},
78  {tecNO_TARGET, {"tecNO_TARGET", "Target account does not exist."}},
80  {"tecNO_PERMISSION", "No permission to perform requested operation."}},
81  {tecNO_ENTRY, {"tecNO_ENTRY", "No matching entry found."}},
83  {"tecINSUFFICIENT_RESERVE",
84  "Insufficient reserve to complete requested operation."}},
86  {"tecNEED_MASTER_KEY",
87  "The operation requires the use of the Master Key."}},
89  {"tecDST_TAG_NEEDED", "A destination tag is required."}},
90  {tecINTERNAL,
91  {"tecINTERNAL", "An internal error has occurred during processing."}},
93  {"tecCRYPTOCONDITION_ERROR",
94  "Malformed, invalid, or mismatched conditional or fulfillment."}},
96  {"tecINVARIANT_FAILED",
97  "One or more invariants for the transaction were not satisfied."}},
98  {tecEXPIRED, {"tecEXPIRED", "Expiration time is passed."}},
99  {tecDUPLICATE, {"tecDUPLICATE", "Ledger object already exists."}},
100  {tecKILLED, {"tecKILLED", "FillOrKill offer killed."}},
102  {"tecHAS_OBLIGATIONS",
103  "The account cannot be deleted since it has obligations."}},
104  {tecTOO_SOON,
105  {"tecTOO_SOON",
106  "It is too early to attempt the requested operation. Please wait."}},
107 
108  {tefALREADY,
109  {"tefALREADY", "The exact transaction was already in this ledger."}},
111  {"tefBAD_ADD_AUTH", "Not authorized to add account."}},
112  {tefBAD_AUTH,
113  {"tefBAD_AUTH", "Transaction's public key is not authorized."}},
114  {tefBAD_LEDGER, {"tefBAD_LEDGER", "Ledger in unexpected state."}},
115  {tefBAD_QUORUM,
116  {"tefBAD_QUORUM", "Signatures provided do not meet the quorum."}},
118  {"tefBAD_SIGNATURE", "A signature is provided for a non-signer."}},
119  {tefCREATED, {"tefCREATED", "Can't add an already created account."}},
120  {tefEXCEPTION, {"tefEXCEPTION", "Unexpected program state."}},
121  {tefFAILURE, {"tefFAILURE", "Failed to apply."}},
122  {tefINTERNAL, {"tefINTERNAL", "Internal error."}},
123  {tefMASTER_DISABLED, {"tefMASTER_DISABLED", "Master key is disabled."}},
124  {tefMAX_LEDGER, {"tefMAX_LEDGER", "Ledger sequence too high."}},
125  {tefNO_AUTH_REQUIRED, {"tefNO_AUTH_REQUIRED", "Auth is not required."}},
127  {"tefNOT_MULTI_SIGNING",
128  "Account has no appropriate list of multi-signers."}},
129  {tefPAST_SEQ,
130  {"tefPAST_SEQ", "This sequence number has already passed."}},
132  {"tefWRONG_PRIOR", "This previous transaction does not match."}},
134  {"tefBAD_AUTH_MASTER",
135  "Auth for unclaimed account needs correct master key."}},
137  {"tefINVARIANT_FAILED",
138  "Fee claim violated invariants for the transaction."}},
139  {tefTOO_BIG, {"tefTOO_BIG", "Transaction affects too many items."}},
140 
141  {telLOCAL_ERROR, {"telLOCAL_ERROR", "Local failure."}},
142  {telBAD_DOMAIN, {"telBAD_DOMAIN", "Domain too long."}},
144  {"telBAD_PATH_COUNT", "Malformed: Too many paths."}},
145  {telBAD_PUBLIC_KEY, {"telBAD_PUBLIC_KEY", "Public key too long."}},
147  {"telFAILED_PROCESSING", "Failed to correctly process transaction."}},
148  {telINSUF_FEE_P, {"telINSUF_FEE_P", "Fee insufficient."}},
150  {"telNO_DST_PARTIAL",
151  "Partial payment to create account not allowed."}},
152  {telCAN_NOT_QUEUE, {"telCAN_NOT_QUEUE", "Can not queue at this time."}},
154  {"telCAN_NOT_QUEUE_BALANCE",
155  "Can not queue at this time: insufficient balance to pay all queued "
156  "fees."}},
158  {"telCAN_NOT_QUEUE_BLOCKS",
159  "Can not queue at this time: would block later queued "
160  "transaction(s)."}},
162  {"telCAN_NOT_QUEUE_BLOCKED",
163  "Can not queue at this time: blocking transaction in queue."}},
165  {"telCAN_NOT_QUEUE_FEE",
166  "Can not queue at this time: fee insufficient to replace queued "
167  "transaction."}},
169  {"telCAN_NOT_QUEUE_FULL",
170  "Can not queue at this time: queue is full."}},
171 
172  {temMALFORMED, {"temMALFORMED", "Malformed transaction."}},
173  {temBAD_AMOUNT, {"temBAD_AMOUNT", "Can only send positive amounts."}},
174  {temBAD_CURRENCY, {"temBAD_CURRENCY", "Malformed: Bad currency."}},
176  {"temBAD_EXPIRATION", "Malformed: Bad expiration."}},
177  {temBAD_FEE, {"temBAD_FEE", "Invalid fee, negative or not XRP."}},
178  {temBAD_ISSUER, {"temBAD_ISSUER", "Malformed: Bad issuer."}},
179  {temBAD_LIMIT, {"temBAD_LIMIT", "Limits must be non-negative."}},
180  {temBAD_OFFER, {"temBAD_OFFER", "Malformed: Bad offer."}},
181  {temBAD_PATH, {"temBAD_PATH", "Malformed: Bad path."}},
182  {temBAD_PATH_LOOP, {"temBAD_PATH_LOOP", "Malformed: Loop in path."}},
183  {temBAD_QUORUM, {"temBAD_QUORUM", "Malformed: Quorum is unreachable."}},
184  {temBAD_REGKEY,
185  {"temBAD_REGKEY",
186  "Malformed: Regular key cannot be same as master key."}},
188  {"temBAD_SEND_XRP_LIMIT",
189  "Malformed: Limit quality is not allowed for XRP to XRP."}},
191  {"temBAD_SEND_XRP_MAX",
192  "Malformed: Send max is not allowed for XRP to XRP."}},
194  {"temBAD_SEND_XRP_NO_DIRECT",
195  "Malformed: No Ripple direct is not allowed for XRP to XRP."}},
197  {"temBAD_SEND_XRP_PARTIAL",
198  "Malformed: Partial payment is not allowed for XRP to XRP."}},
200  {"temBAD_SEND_XRP_PATHS",
201  "Malformed: Paths are not allowed for XRP to XRP."}},
203  {"temBAD_SEQUENCE", "Malformed: Sequence is not in the past."}},
204  {temBAD_SIGNATURE, {"temBAD_SIGNATURE", "Malformed: Bad signature."}},
205  {temBAD_SIGNER,
206  {"temBAD_SIGNER",
207  "Malformed: No signer may duplicate account or other signers."}},
209  {"temBAD_SRC_ACCOUNT", "Malformed: Bad source account."}},
211  {"temBAD_TRANSFER_RATE",
212  "Malformed: Transfer rate must be >= 1.0 and <= 2.0"}},
213  {temBAD_WEIGHT,
214  {"temBAD_WEIGHT", "Malformed: Weight must be a positive value."}},
215  {temDST_IS_SRC, {"temDST_IS_SRC", "Destination may not be source."}},
216  {temDST_NEEDED, {"temDST_NEEDED", "Destination not specified."}},
217  {temINVALID, {"temINVALID", "The transaction is ill-formed."}},
219  {"temINVALID_FLAG", "The transaction has an invalid flag."}},
220  {temREDUNDANT, {"temREDUNDANT", "Sends same currency to self."}},
221  {temRIPPLE_EMPTY, {"temRIPPLE_EMPTY", "PathSet with no paths."}},
222  {temUNCERTAIN,
223  {"temUNCERTAIN", "In process of determining result. Never returned."}},
224  {temUNKNOWN,
225  {"temUNKNOWN",
226  "The transaction requires logic that is not implemented yet."}},
227  {temDISABLED,
228  {"temDISABLED",
229  "The transaction requires logic that is currently disabled."}},
231  {"temBAD_TICK_SIZE", "Malformed: Tick size out of range."}},
233  {"temINVALID_ACCOUNT_ID",
234  "Malformed: A field contains an invalid account ID."}},
236  {"temCANNOT_PREAUTH_SELF",
237  "Malformed: An account may not preauthorize itself."}},
238 
239  {terRETRY, {"terRETRY", "Retry transaction."}},
241  {"terFUNDS_SPENT",
242  "Can't set password, password set funds already spent."}},
243  {terINSUF_FEE_B, {"terINSUF_FEE_B", "Account balance can't pay fee."}},
244  {terLAST, {"terLAST", "Process last."}},
245  {terNO_RIPPLE, {"terNO_RIPPLE", "Path does not permit rippling."}},
246  {terNO_ACCOUNT,
247  {"terNO_ACCOUNT", "The source account does not exist."}},
248  {terNO_AUTH, {"terNO_AUTH", "Not authorized to hold IOUs."}},
249  {terNO_LINE, {"terNO_LINE", "No such line."}},
250  {terPRE_SEQ, {"terPRE_SEQ", "Missing/inapplicable prior transaction."}},
251  {terOWNERS, {"terOWNERS", "Non-zero owner count."}},
252  {terQUEUED, {"terQUEUED", "Held until escalated fee drops."}},
253 
254  {tesSUCCESS,
255  {"tesSUCCESS",
256  "The transaction was applied. Only final in a validated ledger."}},
257  };
258  return results;
259 }
260 
261 } // namespace detail
262 
263 bool
265 {
266  auto& results = detail::transResults();
267 
268  auto const r = results.find(TERtoInt(code));
269 
270  if (r == results.end())
271  return false;
272 
273  token = r->second.first;
274  text = r->second.second;
275  return true;
276 }
277 
280 {
281  std::string token;
282  std::string text;
283 
284  return transResultInfo(code, token, text) ? token : "-";
285 }
286 
289 {
290  std::string token;
291  std::string text;
292 
293  return transResultInfo(code, token, text) ? text : "-";
294 }
295 
296 boost::optional<TER>
297 transCode(std::string const& token)
298 {
299  static auto const results = [] {
300  auto& byTer = detail::transResults();
301  auto range = boost::make_iterator_range(byTer.begin(), byTer.end());
302  auto tRange = boost::adaptors::transform(range, [](auto const& r) {
303  return std::make_pair(r.second.first, r.first);
304  });
306  tRange.begin(), tRange.end());
307  return byToken;
308  }();
309 
310  auto const r = results.find(token);
311 
312  if (r == results.end())
313  return boost::none;
314 
315  return TER::fromInt(r->second);
316 }
317 
318 } // namespace ripple
ripple::tecUNFUNDED_OFFER
@ tecUNFUNDED_OFFER
Definition: TER.h:242
ripple::tecFROZEN
@ tecFROZEN
Definition: TER.h:261
ripple::tecNO_TARGET
@ tecNO_TARGET
Definition: TER.h:262
ripple::temBAD_SEND_XRP_MAX
@ temBAD_SEND_XRP_MAX
Definition: TER.h:95
ripple::tefINTERNAL
@ tefINTERNAL
Definition: TER.h:149
ripple::tecINVARIANT_FAILED
@ tecINVARIANT_FAILED
Definition: TER.h:271
ripple::tecINSUF_RESERVE_LINE
@ tecINSUF_RESERVE_LINE
Definition: TER.h:246
std::string
STL class.
ripple::temBAD_OFFER
@ temBAD_OFFER
Definition: TER.h:90
ripple::tefBAD_ADD_AUTH
@ tefBAD_ADD_AUTH
Definition: TER.h:144
ripple::terINSUF_FEE_B
@ terINSUF_FEE_B
Definition: TER.h:189
ripple::temBAD_CURRENCY
@ temBAD_CURRENCY
Definition: TER.h:85
ripple::terNO_LINE
@ terNO_LINE
Definition: TER.h:192
ripple::tecOWNERS
@ tecOWNERS
Definition: TER.h:256
ripple::telLOCAL_ERROR
@ telLOCAL_ERROR
Definition: TER.h:51
std::pair
ripple::tefINVARIANT_FAILED
@ tefINVARIANT_FAILED
Definition: TER.h:159
ripple::tecNO_REGULAR_KEY
@ tecNO_REGULAR_KEY
Definition: TER.h:255
ripple::telCAN_NOT_QUEUE_FEE
@ telCAN_NOT_QUEUE_FEE
Definition: TER.h:62
ripple::temBAD_REGKEY
@ temBAD_REGKEY
Definition: TER.h:93
ripple::telBAD_DOMAIN
@ telBAD_DOMAIN
Definition: TER.h:52
ripple::tecDST_TAG_NEEDED
@ tecDST_TAG_NEEDED
Definition: TER.h:267
ripple::terFUNDS_SPENT
@ terFUNDS_SPENT
Definition: TER.h:188
ripple::temCANNOT_PREAUTH_SELF
@ temCANNOT_PREAUTH_SELF
Definition: TER.h:115
ripple::transToken
std::string transToken(TER code)
Definition: TER.cpp:279
ripple::telCAN_NOT_QUEUE_FULL
@ telCAN_NOT_QUEUE_FULL
Definition: TER.h:63
ripple::telCAN_NOT_QUEUE
@ telCAN_NOT_QUEUE
Definition: TER.h:58
ripple::TERUnderlyingType
int TERUnderlyingType
Definition: TER.h:37
ripple::TERtoInt
constexpr TERUnderlyingType TERtoInt(TELcodes v)
Definition: TER.h:283
ripple::terNO_RIPPLE
@ terNO_RIPPLE
Definition: TER.h:197
ripple::temBAD_ISSUER
@ temBAD_ISSUER
Definition: TER.h:88
ripple::tefCREATED
@ tefCREATED
Definition: TER.h:147
ripple::temBAD_TRANSFER_RATE
@ temBAD_TRANSFER_RATE
Definition: TER.h:102
ripple::temBAD_PATH
@ temBAD_PATH
Definition: TER.h:91
ripple::temDST_IS_SRC
@ temDST_IS_SRC
Definition: TER.h:103
ripple::tefBAD_AUTH
@ tefBAD_AUTH
Definition: TER.h:145
ripple::detail::transResults
static std::unordered_map< TERUnderlyingType, std::pair< char const *const, char const *const > > const & transResults()
Definition: TER.cpp:32
ripple::tecKILLED
@ tecKILLED
Definition: TER.h:274
ripple::temUNCERTAIN
@ temUNCERTAIN
Definition: TER.h:118
ripple::terQUEUED
@ terQUEUED
Definition: TER.h:198
ripple::tefBAD_QUORUM
@ tefBAD_QUORUM
Definition: TER.h:156
ripple::tecOVERSIZE
@ tecOVERSIZE
Definition: TER.h:269
ripple::tecNO_DST_INSUF_XRP
@ tecNO_DST_INSUF_XRP
Definition: TER.h:249
ripple::temINVALID_FLAG
@ temINVALID_FLAG
Definition: TER.h:106
ripple::tefBAD_LEDGER
@ tefBAD_LEDGER
Definition: TER.h:146
ripple::temBAD_QUORUM
@ temBAD_QUORUM
Definition: TER.h:111
ripple::telFAILED_PROCESSING
@ telFAILED_PROCESSING
Definition: TER.h:55
ripple::tecNO_ALTERNATIVE_KEY
@ tecNO_ALTERNATIVE_KEY
Definition: TER.h:254
ripple::temBAD_SEND_XRP_PARTIAL
@ temBAD_SEND_XRP_PARTIAL
Definition: TER.h:97
ripple::tefMAX_LEDGER
@ tefMAX_LEDGER
Definition: TER.h:154
ripple::tefMASTER_DISABLED
@ tefMASTER_DISABLED
Definition: TER.h:153
ripple::temBAD_LIMIT
@ temBAD_LIMIT
Definition: TER.h:89
ripple::terRETRY
@ terRETRY
Definition: TER.h:187
ripple::temBAD_SIGNER
@ temBAD_SIGNER
Definition: TER.h:110
ripple::tecDUPLICATE
@ tecDUPLICATE
Definition: TER.h:273
ripple::temBAD_SEND_XRP_PATHS
@ temBAD_SEND_XRP_PATHS
Definition: TER.h:98
ripple::TERSubset< CanCvtToTER >
ripple::terLAST
@ terLAST
Definition: TER.h:196
ripple::tecFAILED_PROCESSING
@ tecFAILED_PROCESSING
Definition: TER.h:244
ripple::temDST_NEEDED
@ temDST_NEEDED
Definition: TER.h:104
ripple::temBAD_SEQUENCE
@ temBAD_SEQUENCE
Definition: TER.h:99
ripple::terOWNERS
@ terOWNERS
Definition: TER.h:193
ripple::tecUNFUNDED
@ tecUNFUNDED
Definition: TER.h:253
ripple::temBAD_SRC_ACCOUNT
@ temBAD_SRC_ACCOUNT
Definition: TER.h:101
ripple::telINSUF_FEE_P
@ telINSUF_FEE_P
Definition: TER.h:56
ripple::terNO_AUTH
@ terNO_AUTH
Definition: TER.h:191
ripple::tecNO_LINE_REDUNDANT
@ tecNO_LINE_REDUNDANT
Definition: TER.h:251
ripple::tecUNFUNDED_PAYMENT
@ tecUNFUNDED_PAYMENT
Definition: TER.h:243
ripple::tecINTERNAL
@ tecINTERNAL
Definition: TER.h:268
ripple::temBAD_AMOUNT
@ temBAD_AMOUNT
Definition: TER.h:84
ripple::tecINSUFF_FEE
@ tecINSUFF_FEE
Definition: TER.h:260
ripple::temBAD_SEND_XRP_NO_DIRECT
@ temBAD_SEND_XRP_NO_DIRECT
Definition: TER.h:96
ripple::telBAD_PATH_COUNT
@ telBAD_PATH_COUNT
Definition: TER.h:53
ripple::temBAD_SIGNATURE
@ temBAD_SIGNATURE
Definition: TER.h:100
ripple::temUNKNOWN
@ temUNKNOWN
Definition: TER.h:119
ripple::tecPATH_PARTIAL
@ tecPATH_PARTIAL
Definition: TER.h:240
ripple::temREDUNDANT
@ temREDUNDANT
Definition: TER.h:107
ripple::tefFAILURE
@ tefFAILURE
Definition: TER.h:142
ripple::range
ClosedInterval< T > range(T low, T high)
Create a closed range interval.
Definition: RangeSet.h:53
ripple::temBAD_FEE
@ temBAD_FEE
Definition: TER.h:87
ripple::telCAN_NOT_QUEUE_BLOCKS
@ telCAN_NOT_QUEUE_BLOCKS
Definition: TER.h:60
ripple::tecNEED_MASTER_KEY
@ tecNEED_MASTER_KEY
Definition: TER.h:266
ripple::transHuman
std::string transHuman(TER code)
Definition: TER.cpp:288
ripple::tecUNFUNDED_ADD
@ tecUNFUNDED_ADD
Definition: TER.h:241
ripple::tecDIR_FULL
@ tecDIR_FULL
Definition: TER.h:245
ripple::terNO_ACCOUNT
@ terNO_ACCOUNT
Definition: TER.h:190
ripple::tecTOO_SOON
@ tecTOO_SOON
Definition: TER.h:276
ripple::tefNOT_MULTI_SIGNING
@ tefNOT_MULTI_SIGNING
Definition: TER.h:157
ripple
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition: RCLCensorshipDetector.h:29
ripple::transResultInfo
bool transResultInfo(TER code, std::string &token, std::string &text)
Definition: TER.cpp:264
ripple::tefNO_AUTH_REQUIRED
@ tefNO_AUTH_REQUIRED
Definition: TER.h:150
ripple::temINVALID_ACCOUNT_ID
@ temINVALID_ACCOUNT_ID
Definition: TER.h:114
ripple::tecNO_LINE_INSUF_RESERVE
@ tecNO_LINE_INSUF_RESERVE
Definition: TER.h:250
ripple::tefPAST_SEQ
@ tefPAST_SEQ
Definition: TER.h:151
ripple::tecNO_LINE
@ tecNO_LINE
Definition: TER.h:259
ripple::tecEXPIRED
@ tecEXPIRED
Definition: TER.h:272
ripple::temDISABLED
@ temDISABLED
Definition: TER.h:109
ripple::transCode
boost::optional< TER > transCode(std::string const &token)
Definition: TER.cpp:297
ripple::tefALREADY
@ tefALREADY
Definition: TER.h:143
ripple::TERSubset< CanCvtToTER >::fromInt
static constexpr TERSubset fromInt(int from)
Definition: TER.h:341
ripple::tecNO_ISSUER
@ tecNO_ISSUER
Definition: TER.h:257
ripple::tefTOO_BIG
@ tefTOO_BIG
Definition: TER.h:160
ripple::tecHAS_OBLIGATIONS
@ tecHAS_OBLIGATIONS
Definition: TER.h:275
ripple::tecNO_PERMISSION
@ tecNO_PERMISSION
Definition: TER.h:263
ripple::tefWRONG_PRIOR
@ tefWRONG_PRIOR
Definition: TER.h:152
ripple::temRIPPLE_EMPTY
@ temRIPPLE_EMPTY
Definition: TER.h:108
ripple::tecPATH_DRY
@ tecPATH_DRY
Definition: TER.h:252
ripple::telBAD_PUBLIC_KEY
@ telBAD_PUBLIC_KEY
Definition: TER.h:54
ripple::tecINSUFFICIENT_RESERVE
@ tecINSUFFICIENT_RESERVE
Definition: TER.h:265
ripple::terPRE_SEQ
@ terPRE_SEQ
Definition: TER.h:194
std::make_pair
T make_pair(T... args)
ripple::tefBAD_AUTH_MASTER
@ tefBAD_AUTH_MASTER
Definition: TER.h:158
ripple::tecNO_ENTRY
@ tecNO_ENTRY
Definition: TER.h:264
ripple::temBAD_PATH_LOOP
@ temBAD_PATH_LOOP
Definition: TER.h:92
ripple::temMALFORMED
@ temMALFORMED
Definition: TER.h:82
ripple::tefEXCEPTION
@ tefEXCEPTION
Definition: TER.h:148
ripple::telNO_DST_PARTIAL
@ telNO_DST_PARTIAL
Definition: TER.h:57
ripple::temBAD_TICK_SIZE
@ temBAD_TICK_SIZE
Definition: TER.h:113
ripple::tecNO_AUTH
@ tecNO_AUTH
Definition: TER.h:258
ripple::tecCLAIM
@ tecCLAIM
Definition: TER.h:239
ripple::temBAD_EXPIRATION
@ temBAD_EXPIRATION
Definition: TER.h:86
ripple::temBAD_SEND_XRP_LIMIT
@ temBAD_SEND_XRP_LIMIT
Definition: TER.h:94
ripple::telCAN_NOT_QUEUE_BALANCE
@ telCAN_NOT_QUEUE_BALANCE
Definition: TER.h:59
ripple::tecINSUF_RESERVE_OFFER
@ tecINSUF_RESERVE_OFFER
Definition: TER.h:247
unordered_map
ripple::tesSUCCESS
@ tesSUCCESS
Definition: TER.h:213
type_traits
ripple::temBAD_WEIGHT
@ temBAD_WEIGHT
Definition: TER.h:112
ripple::tecNO_DST
@ tecNO_DST
Definition: TER.h:248
ripple::temINVALID
@ temINVALID
Definition: TER.h:105
ripple::telCAN_NOT_QUEUE_BLOCKED
@ telCAN_NOT_QUEUE_BLOCKED
Definition: TER.h:61
ripple::tefBAD_SIGNATURE
@ tefBAD_SIGNATURE
Definition: TER.h:155
ripple::tecCRYPTOCONDITION_ERROR
@ tecCRYPTOCONDITION_ERROR
Definition: TER.h:270