CatapultServer  v0.5.0.1 (Elephant)
plugins/txes/restriction_account/src/validators/Results.h
Go to the documentation of this file.
1 
21 #pragma once
22 #ifndef CUSTOM_RESULT_DEFINITION
24 
25 namespace catapult { namespace validators {
26 
27 #endif
28 
30 #define DEFINE_RESTRICTION_ACCOUNT_RESULT(DESCRIPTION, CODE) DEFINE_VALIDATION_RESULT(Failure, RestrictionAccount, DESCRIPTION, CODE, None)
31 
33  DEFINE_RESTRICTION_ACCOUNT_RESULT(Invalid_Restriction_Type, 1);
34 
36  DEFINE_RESTRICTION_ACCOUNT_RESULT(Modification_Type_Invalid, 2);
37 
39  DEFINE_RESTRICTION_ACCOUNT_RESULT(Modification_Address_Invalid, 3);
40 
43  DEFINE_RESTRICTION_ACCOUNT_RESULT(Modification_Operation_Type_Incompatible, 4);
44 
46  DEFINE_RESTRICTION_ACCOUNT_RESULT(Modify_Unsupported_Modification_Type, 5);
47 
49  DEFINE_RESTRICTION_ACCOUNT_RESULT(Modification_Redundant, 6);
50 
52  DEFINE_RESTRICTION_ACCOUNT_RESULT(Modification_Not_Allowed, 7);
53 
55  DEFINE_RESTRICTION_ACCOUNT_RESULT(Modification_Count_Exceeded, 8);
56 
58  DEFINE_RESTRICTION_ACCOUNT_RESULT(Values_Count_Exceeded, 9);
59 
61  DEFINE_RESTRICTION_ACCOUNT_RESULT(Value_Invalid, 10);
62 
64  DEFINE_RESTRICTION_ACCOUNT_RESULT(Signer_Address_Interaction_Not_Allowed, 11);
65 
67  DEFINE_RESTRICTION_ACCOUNT_RESULT(Mosaic_Transfer_Not_Allowed, 12);
68 
70  DEFINE_RESTRICTION_ACCOUNT_RESULT(Transaction_Type_Not_Allowed, 13);
71 
72 #ifndef CUSTOM_RESULT_DEFINITION
73 }}
74 #endif
ValidationResult.h
catapult
Definition: AddressExtractionExtension.cpp:28
catapult::validators::DEFINE_RESTRICTION_ACCOUNT_RESULT
DEFINE_RESTRICTION_ACCOUNT_RESULT(Invalid_Restriction_Type, 1)
Validation failed because the account restriction type is invalid.