xrpld
Loading...
Searching...
No Matches
TER.h
1#pragma once
2
3// NOLINTBEGIN(readability-identifier-naming)
4
5#include <xrpl/basics/safe_cast.h>
6#include <xrpl/json/json_value.h>
7
8#include <optional>
9#include <ostream>
10#include <string>
11#include <type_traits>
12#include <unordered_map>
13#include <utility>
14
15namespace xrpl {
16
17// See https://xrpl.org/transaction-results.html
18//
19// "Transaction Engine Result"
20// or Transaction ERror.
21//
23
24//------------------------------------------------------------------------------
25
26// Protocol-critical, mixed with custom TER wrapper type, hundreds of usages
27// NOLINTNEXTLINE(cppcoreguidelines-use-enum-class)
29 // Note: Range is stable.
30 // Exact numbers are used in ripple-binary-codec:
31 // https://github.com/XRPLF/xrpl.js/blob/main/packages/ripple-binary-codec/src/enums/definitions.json
32 // Use tokens.
33
34 // -399 .. -300: L Local error (transaction fee inadequate, exceeds local
35 // limit) Only valid during non-consensus processing. Implications:
36 // - Not forwarded
37 // - No fee check
55};
56
57//------------------------------------------------------------------------------
58
59// Protocol-critical, mixed with custom TER wrapper type, hundreds of usages
60// NOLINTNEXTLINE(cppcoreguidelines-use-enum-class)
62 // Note: Range is stable.
63 // Exact numbers are used in ripple-binary-codec:
64 // https://github.com/XRPLF/xrpl.js/blob/main/packages/ripple-binary-codec/src/enums/definitions.json
65 // Use tokens.
66
67 // -299 .. -200: M Malformed (bad signature)
68 // Causes:
69 // - Transaction corrupt.
70 // Implications:
71 // - Not applied
72 // - Not forwarded
73 // - Reject
74 // - Cannot succeed in any imagined ledger.
76
110
111 temUNCERTAIN, // An internal intermediate result; should never be returned.
112 temUNKNOWN, // An internal intermediate result; should never be returned.
113
116
118
125
127
132
136};
137
138//------------------------------------------------------------------------------
139
140// Protocol-critical, mixed with custom TER wrapper type, hundreds of usages
141// NOLINTNEXTLINE(cppcoreguidelines-use-enum-class)
143 // Note: Range is stable.
144 // Exact numbers are used in ripple-binary-codec:
145 // https://github.com/XRPLF/xrpl.js/blob/main/packages/ripple-binary-codec/src/enums/definitions.json
146 // Use tokens.
147
148 // -199 .. -100: F
149 // Failure (sequence number previously used)
150 //
151 // Causes:
152 // - Transaction cannot succeed because of ledger state.
153 // - Unexpected ledger state.
154 // - C++ exception.
155 //
156 // Implications:
157 // - Not applied
158 // - Not forwarded
159 // - Could succeed in an imagined ledger.
168 tefNO_AUTH_REQUIRED, // Can't set auth if auth is not required.
188};
189
190//------------------------------------------------------------------------------
191
192// Protocol-critical, mixed with custom TER wrapper type, hundreds of usages
193// NOLINTNEXTLINE(cppcoreguidelines-use-enum-class)
195 // Note: Range is stable.
196 // Exact numbers are used in ripple-binary-codec:
197 // https://github.com/XRPLF/xrpl.js/blob/main/packages/ripple-binary-codec/src/enums/definitions.json
198 // Use tokens.
199
200 // -99 .. -1: R Retry
201 // sequence too high, no funds for txn fee, originating -account
202 // non-existent
203 //
204 // Cause:
205 // Prior application of another, possibly non-existent, transaction could
206 // allow this transaction to succeed.
207 //
208 // Implications:
209 // - Not applied
210 // - May be forwarded
211 // - Results indicating the txn was forwarded: terQUEUED
212 // - All others are not forwarded.
213 // - Might succeed later
214 // - Hold
215 // - Makes hole in sequence which jams transactions.
216 terRETRY = -99,
217 terFUNDS_SPENT, // DEPRECATED.
218 terINSUF_FEE_B, // Can't pay fee, therefore don't burden network.
219 terNO_ACCOUNT, // Can't pay fee, therefore don't burden network.
220 terNO_AUTH, // Not authorized to hold IOUs.
221 terNO_LINE, // Internal flag.
222 terOWNERS, // Can't succeed with non-zero owner count.
223 terPRE_SEQ, // Can't pay fee, no point in forwarding, so don't
224 // burden network.
225 terLAST, // DEPRECATED.
226 terNO_RIPPLE, // Rippling not allowed
227 terQUEUED, // Transaction is being held in TxQ until fee drops
228 terPRE_TICKET, // Ticket is not yet in ledger but might be on its way
229 terNO_AMM, // AMM doesn't exist for the asset pair
230 terADDRESS_COLLISION, // Failed to allocate AccountID when trying to
231 // create a pseudo-account
232 terNO_DELEGATE_PERMISSION, // Delegate does not have permission
233 terLOCKED, // MPT is locked
234 terNO_PERMISSION, // No permission but retry
235 terTICKET_RESERVED, // Ticket is reserved and cannot be consumed
236 // until the reservation is released
237};
238
239//------------------------------------------------------------------------------
240
241// Protocol-critical, mixed with custom TER wrapper type, hundreds of usages
242// NOLINTNEXTLINE(cppcoreguidelines-use-enum-class)
244 // Note: Exact number must stay stable. This code is stored by value
245 // in metadata for historic transactions.
246
247 // 0: S Success (success)
248 // Causes:
249 // - Success.
250 // Implications:
251 // - Applied
252 // - Forwarded
254};
255
256//------------------------------------------------------------------------------
257
258// Protocol-critical, mixed with custom TER wrapper type, hundreds of usages
259// NOLINTNEXTLINE(cppcoreguidelines-use-enum-class)
261 // Note: Exact numbers must stay stable. These codes are stored by
262 // value in metadata for historic transactions.
263
264 // 100 .. 255 C
265 // Claim fee only (ripple transaction with no good paths, pay to
266 // non-existent account, no path)
267 //
268 // Causes:
269 // - Success, but does not achieve optimal result.
270 // - Invalid transaction or no effect, but claim fee to use the sequence
271 // number.
272 //
273 // Implications:
274 // - Applied
275 // - Forwarded
276 //
277 // Only allowed as a return code of appliedTransaction when !tapRETRY.
278 // Otherwise, treated as terRETRY.
279 //
280 // DO NOT CHANGE THESE NUMBERS: They appear in ledger meta data.
281 //
282 // Note:
283 // tecNO_ENTRY is often used interchangeably with tecOBJECT_NOT_FOUND.
284 // While there does not seem to be a clear rule which to use when, the
285 // following guidance will help to keep errors consistent with the
286 // majority of (but not all) transaction types:
287 // - tecNO_ENTRY : cannot find the primary ledger object on which the
288 // transaction is being attempted
289 // - tecOBJECT_NOT_FOUND : cannot find the additional object(s) needed to
290 // complete the transaction
291
292 tecCLAIM = 100,
294 tecUNFUNDED_ADD = 102, // Unused legacy code
330 tecHOOK_REJECTED [[maybe_unused]] = 153,
375 // DEPRECATED: This error code tecNO_DELEGATE_PERMISSION is reserved for
376 // backward compatibility with historical data on non-prod networks, can be
377 // reclaimed after those networks reset.
383};
384
385//------------------------------------------------------------------------------
386
387// For generic purposes, a free function that returns the value of a TE*codes.
388constexpr TERUnderlyingType
393
394constexpr TERUnderlyingType
399
400constexpr TERUnderlyingType
405
406constexpr TERUnderlyingType
411
412constexpr TERUnderlyingType
417
418constexpr TERUnderlyingType
423
424//------------------------------------------------------------------------------
425// Template class that is specific to selected ranges of error codes. The
426// Trait tells the requires-clause which ranges are allowed.
427template <template <typename> class Trait>
429{
431
432public:
433 // Constructors
435 {
436 }
437 constexpr TERSubset(TERSubset const& rhs) = default;
438 constexpr TERSubset(TERSubset&& rhs) = default;
439
440private:
441 constexpr explicit TERSubset(int rhs) : code_(rhs)
442 {
443 }
444
445public:
446 static constexpr TERSubset
447 fromInt(int from)
448 {
449 return TERSubset(from);
450 }
451
452 // Trait tells the requires-clause which types are allowed for construction.
453 template <typename T>
454 constexpr TERSubset(T rhs)
455 requires(Trait<std::remove_cvref_t<T>>::value)
456 : code_(TERtoInt(rhs))
457 {
458 }
459
460 // Assignment
461 constexpr TERSubset&
462 operator=(TERSubset const& rhs) = default;
463 constexpr TERSubset&
464 operator=(TERSubset&& rhs) = default;
465
466 // Trait tells the requires-clause which types are allowed for assignment.
467 template <typename T>
468 constexpr auto
470 requires(Trait<T>::value)
471 {
472 code_ = TERtoInt(rhs);
473 return *this;
474 }
475
476 // Conversion to bool.
477 explicit
478 operator bool() const
479 {
480 return code_ != tesSUCCESS;
481 }
482
483 // Conversion to json::Value allows assignment to json::Objects
484 // without casting.
485 operator json::Value() const
486 {
487 return json::Value{code_};
488 }
489
490 // Streaming operator.
492 operator<<(std::ostream& os, TERSubset const& rhs)
493 {
494 return os << rhs.code_;
495 }
496
497 // Return the underlying value. Not a member so similarly named free
498 // functions can do the same work for the enums.
499 //
500 // It's worth noting that an explicit conversion operator was considered
501 // and rejected. Consider this case, taken from Status.h
502 //
503 // class Status {
504 // int code_;
505 // public:
506 // Status (TER ter)
507 // : code_ (ter) {}
508 // }
509 //
510 // This code compiles with no errors or warnings if TER has an explicit
511 // (unnamed) conversion to int. To avoid silent conversions like these
512 // we provide (only) a named conversion.
513 friend constexpr TERUnderlyingType
515 {
516 return v.code_;
517 }
518};
519
520// Comparison operators.
521// Only enabled if both arguments return int if TERtiInt is called with them.
522template <typename L, typename R>
523constexpr auto
524operator==(L const& lhs, R const& rhs) -> bool
525 requires(
526 std::is_same_v<decltype(TERtoInt(lhs)), int> &&
527 std::is_same_v<decltype(TERtoInt(rhs)), int>)
528{
529 return TERtoInt(lhs) == TERtoInt(rhs);
530}
531
532template <typename L, typename R>
533constexpr auto
534operator!=(L const& lhs, R const& rhs) -> bool
535 requires(
536 std::is_same_v<decltype(TERtoInt(lhs)), int> &&
537 std::is_same_v<decltype(TERtoInt(rhs)), int>)
538{
539 return TERtoInt(lhs) != TERtoInt(rhs);
540}
541
542template <typename L, typename R>
543constexpr auto
544operator<(L const& lhs, R const& rhs) -> bool
545 requires(
546 std::is_same_v<decltype(TERtoInt(lhs)), int> &&
547 std::is_same_v<decltype(TERtoInt(rhs)), int>)
548{
549 return TERtoInt(lhs) < TERtoInt(rhs);
550}
551
552template <typename L, typename R>
553constexpr auto
554operator<=(L const& lhs, R const& rhs) -> bool
555 requires(
556 std::is_same_v<decltype(TERtoInt(lhs)), int> &&
557 std::is_same_v<decltype(TERtoInt(rhs)), int>)
558{
559 return TERtoInt(lhs) <= TERtoInt(rhs);
560}
561
562template <typename L, typename R>
563constexpr auto
564operator>(L const& lhs, R const& rhs) -> bool
565 requires(
566 std::is_same_v<decltype(TERtoInt(lhs)), int> &&
567 std::is_same_v<decltype(TERtoInt(rhs)), int>)
568{
569 return TERtoInt(lhs) > TERtoInt(rhs);
570}
571
572template <typename L, typename R>
573constexpr auto
574operator>=(L const& lhs, R const& rhs) -> bool
575 requires(
576 std::is_same_v<decltype(TERtoInt(lhs)), int> &&
577 std::is_same_v<decltype(TERtoInt(rhs)), int>)
578{
579 return TERtoInt(lhs) >= TERtoInt(rhs);
580}
581
582//------------------------------------------------------------------------------
583
584// Use traits to build a TERSubset that can convert from any of the TE*codes
585// enums *except* TECcodes: NotTEC
586
587// NOTE: NotTEC is useful for codes returned by preflight in transactors.
588// Preflight checks occur prior to signature checking. If preflight returned
589// a tec code, then a malicious user could submit a transaction with a very
590// large fee and have that fee charged against an account without using that
591// account's valid signature.
592template <typename FROM>
594{
595};
596template <>
598{
599};
600template <>
602{
603};
604template <>
606{
607};
608template <>
610{
611};
612template <>
614{
615};
616
618
619//------------------------------------------------------------------------------
620
621// Use traits to build a TERSubset that can convert from any of the TE*codes
622// enums as well as from NotTEC.
623template <typename FROM>
625{
626};
627template <>
629{
630};
631template <>
633{
634};
635template <>
637{
638};
639template <>
641{
642};
643template <>
645{
646};
647template <>
649{
650};
651template <>
653{
654};
655
656// TER allows all of the subsets.
658
659//------------------------------------------------------------------------------
660
661inline bool
662isTelLocal(TER x) noexcept
663{
664 return (x >= telLOCAL_ERROR && x < temMALFORMED);
665}
666
667inline bool
669{
670 return (x >= temMALFORMED && x < tefFAILURE);
671}
672
673inline bool
674isTefFailure(TER x) noexcept
675{
676 return (x >= tefFAILURE && x < terRETRY);
677}
678
679inline bool
680isTerRetry(TER x) noexcept
681{
682 return (x >= terRETRY && x < tesSUCCESS);
683}
684
685inline bool
686isTesSuccess(TER x) noexcept
687{
688 // Makes use of TERSubset::operator bool()
689 return !x;
690}
691
692inline bool
693isTecClaim(TER x) noexcept
694{
695 return (x >= tecCLAIM);
696}
697
700
701bool
702transResultInfo(TER code, std::string& token, std::string& text);
703
705transToken(TER code);
706
708transHuman(TER code);
709
711transCode(std::string const& token);
712
713} // namespace xrpl
714
715// NOLINTEND(readability-identifier-naming)
Represents a JSON value.
Definition json_value.h:121
constexpr TERSubset & operator=(TERSubset const &rhs)=default
constexpr TERSubset(TERSubset &&rhs)=default
TERUnderlyingType code_
Definition TER.h:430
static constexpr TERSubset fromInt(int from)
Definition TER.h:447
constexpr TERSubset(int rhs)
Definition TER.h:441
constexpr TERSubset()
Definition TER.h:434
constexpr TERSubset(T rhs)
Definition TER.h:454
constexpr auto operator=(T rhs) -> TERSubset &requires(Trait< T >::value)
Definition TER.h:469
constexpr TERSubset(TERSubset const &rhs)=default
constexpr TERSubset & operator=(TERSubset &&rhs)=default
friend constexpr TERUnderlyingType TERtoInt(TERSubset v)
Definition TER.h:514
friend std::ostream & operator<<(std::ostream &os, TERSubset const &rhs)
Definition TER.h:492
T is_same_v
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:5
TELcodes
Definition TER.h:28
@ telWRONG_NETWORK
Definition TER.h:51
@ telNETWORK_ID_MAKES_TX_NON_CANONICAL
Definition TER.h:53
@ telBAD_PATH_COUNT
Definition TER.h:40
@ telCAN_NOT_QUEUE_FULL
Definition TER.h:50
@ telCAN_NOT_QUEUE_FEE
Definition TER.h:49
@ telCAN_NOT_QUEUE_BLOCKED
Definition TER.h:48
@ telFAILED_PROCESSING
Definition TER.h:42
@ telINSUF_FEE_P
Definition TER.h:43
@ telENV_RPC_FAILED
Definition TER.h:54
@ telLOCAL_ERROR
Definition TER.h:38
@ telCAN_NOT_QUEUE
Definition TER.h:45
@ telREQUIRES_NETWORK_ID
Definition TER.h:52
@ telBAD_DOMAIN
Definition TER.h:39
@ telCAN_NOT_QUEUE_BALANCE
Definition TER.h:46
@ telNO_DST_PARTIAL
Definition TER.h:44
@ telBAD_PUBLIC_KEY
Definition TER.h:41
@ telCAN_NOT_QUEUE_BLOCKS
Definition TER.h:47
bool operator<(Slice const &lhs, Slice const &rhs) noexcept
Definition Slice.h:212
TERcodes
Definition TER.h:194
@ terNO_AMM
Definition TER.h:229
@ terPRE_SEQ
Definition TER.h:223
@ terNO_LINE
Definition TER.h:221
@ terTICKET_RESERVED
Definition TER.h:235
@ terNO_AUTH
Definition TER.h:220
@ terLOCKED
Definition TER.h:233
@ terNO_PERMISSION
Definition TER.h:234
@ terNO_RIPPLE
Definition TER.h:226
@ terINSUF_FEE_B
Definition TER.h:218
@ terFUNDS_SPENT
Definition TER.h:217
@ terOWNERS
Definition TER.h:222
@ terLAST
Definition TER.h:225
@ terADDRESS_COLLISION
Definition TER.h:230
@ terNO_DELEGATE_PERMISSION
Definition TER.h:232
@ terNO_ACCOUNT
Definition TER.h:219
@ terPRE_TICKET
Definition TER.h:228
@ terRETRY
Definition TER.h:216
@ terQUEUED
Definition TER.h:227
bool isTerRetry(TER x) noexcept
Definition TER.h:680
int TERUnderlyingType
Definition TER.h:22
constexpr bool operator==(BaseUInt< Bits, Tag > const &lhs, BaseUInt< Bits, Tag > const &rhs)
Definition base_uint.h:613
bool operator>=(STAmount const &lhs, STAmount const &rhs)
Definition STAmount.h:658
TEFcodes
Definition TER.h:142
@ tefTEMP_DISABLED
Definition TER.h:186
@ tefBAD_PATH_COUNT
Definition TER.h:183
@ tefBAD_QUORUM
Definition TER.h:174
@ tefBAD_AUTH_MASTER
Definition TER.h:176
@ tefINVARIANT_FAILED
Definition TER.h:177
@ tefMAX_LEDGER
Definition TER.h:172
@ tefTOO_BIG
Definition TER.h:178
@ tefMASTER_DISABLED
Definition TER.h:171
@ tefALREADY
Definition TER.h:161
@ tefBAD_LEDGER
Definition TER.h:164
@ tefWRONG_PRIOR
Definition TER.h:170
@ tefNO_AUTH_REQUIRED
Definition TER.h:168
@ tefEXCEEDS_LIMIT
Definition TER.h:187
@ tefFAILURE
Definition TER.h:160
@ tefNO_TICKET
Definition TER.h:179
@ tefBAD_SIGNATURE
Definition TER.h:173
@ tefINVALID_LEDGER_FIX_TYPE
Definition TER.h:181
@ tefNO_DST_PARTIAL
Definition TER.h:182
@ tefNO_BYTECODE
Definition TER.h:184
@ tefINTERNAL
Definition TER.h:167
@ tefCREATED
Definition TER.h:165
@ tefBYTECODE_NOT_INCLUDED
Definition TER.h:185
@ tefNFTOKEN_IS_NOT_TRANSFERABLE
Definition TER.h:180
@ tefBAD_AUTH
Definition TER.h:163
@ tefEXCEPTION
Definition TER.h:166
@ tefPAST_SEQ
Definition TER.h:169
@ tefBAD_ADD_AUTH
Definition TER.h:162
@ tefNOT_MULTI_SIGNING
Definition TER.h:175
std::string transHuman(TER code)
Definition TER.cpp:268
bool transResultInfo(TER code, std::string &token, std::string &text)
Definition TER.cpp:244
constexpr Dest safeCast(Src s) noexcept
Definition safe_cast.h:21
std::string transToken(TER code)
Definition TER.cpp:259
bool operator!=(SecretKey const &lhs, SecretKey const &rhs)=delete
TERSubset< CanCvtToNotTEC > NotTEC
Definition TER.h:617
bool isTefFailure(TER x) noexcept
Definition TER.h:674
bool operator<=(STAmount const &lhs, STAmount const &rhs)
Definition STAmount.h:652
bool isTelLocal(TER x) noexcept
Definition TER.h:662
std::unordered_map< TERUnderlyingType, std::pair< char const *const, char const *const > > const & transResults()
Definition TER.cpp:14
constexpr TERUnderlyingType TERtoInt(TELcodes v)
Definition TER.h:389
TEMcodes
Definition TER.h:61
@ temBAD_REGKEY
Definition TER.h:86
@ temBAD_PATH
Definition TER.h:84
@ temBAD_SEND_XRP_PATHS
Definition TER.h:91
@ temBAD_ISSUER
Definition TER.h:81
@ temBAD_CURRENCY
Definition TER.h:78
@ temARRAY_TOO_LARGE
Definition TER.h:129
@ temBAD_EXPIRATION
Definition TER.h:79
@ temBAD_SEND_XRP_MAX
Definition TER.h:88
@ temBAD_SEND_XRP_LIMIT
Definition TER.h:87
@ temBAD_FEE
Definition TER.h:80
@ temINVALID
Definition TER.h:98
@ temBAD_CIPHERTEXT
Definition TER.h:134
@ temBAD_SEQUENCE
Definition TER.h:92
@ temBAD_MPT
Definition TER.h:133
@ temINVALID_BYTECODE
Definition TER.h:135
@ temBAD_AMM_TOKENS
Definition TER.h:117
@ temINVALID_FLAG
Definition TER.h:99
@ temEMPTY_DID
Definition TER.h:126
@ temCANNOT_PREAUTH_SELF
Definition TER.h:108
@ temBAD_SEND_XRP_PARTIAL
Definition TER.h:90
@ temDST_IS_SRC
Definition TER.h:96
@ temDST_NEEDED
Definition TER.h:97
@ temXCHAIN_BRIDGE_BAD_MIN_ACCOUNT_CREATE_AMOUNT
Definition TER.h:123
@ temBAD_LIMIT
Definition TER.h:82
@ temBAD_SRC_ACCOUNT
Definition TER.h:94
@ temMALFORMED
Definition TER.h:75
@ temXCHAIN_BRIDGE_NONDOOR_OWNER
Definition TER.h:122
@ temBAD_PATH_LOOP
Definition TER.h:85
@ temBAD_SEND_XRP_NO_DIRECT
Definition TER.h:89
@ temXCHAIN_BRIDGE_BAD_ISSUES
Definition TER.h:121
@ temARRAY_EMPTY
Definition TER.h:128
@ temINVALID_ACCOUNT_ID
Definition TER.h:107
@ temBAD_TRANSFER_RATE
Definition TER.h:95
@ temINVALID_COUNT
Definition TER.h:109
@ temSEQ_AND_TICKET
Definition TER.h:114
@ temDISABLED
Definition TER.h:102
@ temBAD_QUORUM
Definition TER.h:104
@ temXCHAIN_BRIDGE_BAD_REWARD_AMOUNT
Definition TER.h:124
@ temUNKNOWN
Definition TER.h:112
@ temBAD_TICK_SIZE
Definition TER.h:106
@ temBAD_AMOUNT
Definition TER.h:77
@ temBAD_OFFER
Definition TER.h:83
@ temBAD_TRANSFER_FEE
Definition TER.h:130
@ temBAD_SIGNATURE
Definition TER.h:93
@ temRIPPLE_EMPTY
Definition TER.h:101
@ temBAD_NFTOKEN_TRANSFER_FEE
Definition TER.h:115
@ temINVALID_INNER_BATCH
Definition TER.h:131
@ temREDUNDANT
Definition TER.h:100
@ temXCHAIN_EQUAL_DOOR_ACCOUNTS
Definition TER.h:119
@ temBAD_SIGNER
Definition TER.h:103
@ temBAD_WEIGHT
Definition TER.h:105
@ temUNCERTAIN
Definition TER.h:111
@ temXCHAIN_BAD_PROOF
Definition TER.h:120
bool isTesSuccess(TER x) noexcept
Definition TER.h:686
TERSubset< CanCvtToTER > TER
Definition TER.h:657
std::optional< TER > transCode(std::string const &token)
Definition TER.cpp:277
TECcodes
Definition TER.h:260
@ tecINVALID_UPDATE_TIME
Definition TER.h:365
@ tecXCHAIN_INSUFF_CREATE_AMOUNT
Definition TER.h:357
@ tecCLAIM
Definition TER.h:292
@ tecOUT_OF_GAS
Definition TER.h:381
@ tecINSUF_RESERVE_OFFER
Definition TER.h:300
@ tecBYTECODE_REJECTED
Definition TER.h:382
@ tecHOOK_REJECTED
Definition TER.h:330
@ tecDIR_FULL
Definition TER.h:298
@ tecWRONG_ASSET
Definition TER.h:371
@ tecPSEUDO_ACCOUNT
Definition TER.h:373
@ tecCANT_ACCEPT_OWN_NFTOKEN_OFFER
Definition TER.h:335
@ tecAMM_EMPTY
Definition TER.h:343
@ tecLOCKED
Definition TER.h:369
@ tecNO_LINE_INSUF_RESERVE
Definition TER.h:303
@ tecPATH_PARTIAL
Definition TER.h:293
@ tecAMM_INVALID_TOKENS
Definition TER.h:342
@ tecINSUF_RESERVE_LINE
Definition TER.h:299
@ tecNEED_MASTER_KEY
Definition TER.h:319
@ tecINSUFF_FEE
Definition TER.h:313
@ tecAMM_FAILED
Definition TER.h:341
@ tecUNFUNDED_PAYMENT
Definition TER.h:296
@ tecNO_ENTRY
Definition TER.h:317
@ tecAMM_NOT_EMPTY
Definition TER.h:344
@ tecXCHAIN_NO_SIGNERS_LIST
Definition TER.h:355
@ tecNO_TARGET
Definition TER.h:315
@ tecPATH_DRY
Definition TER.h:305
@ tecXCHAIN_SENDING_ACCOUNT_MISMATCH
Definition TER.h:356
@ tecXCHAIN_BAD_TRANSFER_ISSUE
Definition TER.h:347
@ tecINCOMPLETE
Definition TER.h:346
@ tecNO_DST_INSUF_XRP
Definition TER.h:302
@ tecUNFUNDED_AMM
Definition TER.h:339
@ tecOBJECT_NOT_FOUND
Definition TER.h:337
@ tecNO_SPONSOR_PERMISSION
Definition TER.h:380
@ tecNO_AUTH
Definition TER.h:311
@ tecEMPTY_DID
Definition TER.h:364
@ tecNO_SUITABLE_NFTOKEN_PAGE
Definition TER.h:332
@ tecXCHAIN_WRONG_CHAIN
Definition TER.h:353
@ tecINTERNAL
Definition TER.h:321
@ tecXCHAIN_PROOF_UNKNOWN_KEY
Definition TER.h:351
@ tecXCHAIN_ACCOUNT_CREATE_PAST
Definition TER.h:358
@ tecAMM_BALANCE
Definition TER.h:340
@ tecXCHAIN_PAYMENT_FAILED
Definition TER.h:360
@ tecXCHAIN_NO_CLAIM_ID
Definition TER.h:348
@ tecNO_LINE_REDUNDANT
Definition TER.h:304
@ tecFAILED_PROCESSING
Definition TER.h:297
@ tecARRAY_TOO_LARGE
Definition TER.h:368
@ tecXCHAIN_ACCOUNT_CREATE_TOO_MANY
Definition TER.h:359
@ tecNFTOKEN_BUY_SELL_MISMATCH
Definition TER.h:333
@ tecTOO_SOON
Definition TER.h:329
@ tecBAD_CREDENTIALS
Definition TER.h:370
@ tecINVARIANT_FAILED
Definition TER.h:324
@ tecFROZEN
Definition TER.h:314
@ tecAMM_ACCOUNT
Definition TER.h:345
@ tecINSUFFICIENT_FUNDS
Definition TER.h:336
@ tecXCHAIN_CREATE_ACCOUNT_NONXRP_ISSUE
Definition TER.h:352
@ tecUNFUNDED_OFFER
Definition TER.h:295
@ tecNO_DELEGATE_PERMISSION
Definition TER.h:378
@ tecXCHAIN_BAD_CLAIM_ID
Definition TER.h:349
@ tecBAD_PROOF
Definition TER.h:379
@ tecEXPIRED
Definition TER.h:325
@ tecNO_LINE
Definition TER.h:312
@ tecCRYPTOCONDITION_ERROR
Definition TER.h:323
@ tecNO_ALTERNATIVE_KEY
Definition TER.h:307
@ tecARRAY_EMPTY
Definition TER.h:367
@ tecXCHAIN_BAD_PUBLIC_KEY_ACCOUNT_PAIR
Definition TER.h:362
@ tecUNFUNDED_ADD
Definition TER.h:294
@ tecNFTOKEN_OFFER_TYPE_MISMATCH
Definition TER.h:334
@ tecXCHAIN_CREATE_ACCOUNT_DISABLED
Definition TER.h:363
@ tecOWNERS
Definition TER.h:309
@ tecPRECISION_LOSS
Definition TER.h:374
@ tecINSUFFICIENT_RESERVE
Definition TER.h:318
@ tecXCHAIN_SELF_COMMIT
Definition TER.h:361
@ tecKILLED
Definition TER.h:327
@ tecXCHAIN_CLAIM_NO_QUORUM
Definition TER.h:350
@ tecXCHAIN_REWARD_MISMATCH
Definition TER.h:354
@ tecMAX_SEQUENCE_REACHED
Definition TER.h:331
@ tecLIMIT_EXCEEDED
Definition TER.h:372
@ tecNO_REGULAR_KEY
Definition TER.h:308
@ tecNO_PERMISSION
Definition TER.h:316
@ tecTOKEN_PAIR_NOT_FOUND
Definition TER.h:366
@ tecDST_TAG_NEEDED
Definition TER.h:320
@ tecOVERSIZE
Definition TER.h:322
@ tecNO_ISSUER
Definition TER.h:310
@ tecDUPLICATE
Definition TER.h:326
@ tecHAS_OBLIGATIONS
Definition TER.h:328
@ tecNO_DST
Definition TER.h:301
@ tecUNFUNDED
Definition TER.h:306
@ tecINSUFFICIENT_PAYMENT
Definition TER.h:338
bool isTecClaim(TER x) noexcept
Definition TER.h:693
bool operator>(STAmount const &lhs, STAmount const &rhs)
Definition STAmount.h:646
bool isTemMalformed(TER x) noexcept
Definition TER.h:668
TEScodes
Definition TER.h:243
@ tesSUCCESS
Definition TER.h:253