CatapultServer
v0.5.0.1 (Elephant)
plugins/txes/namespace/src/validators/Results.h
Go to the documentation of this file.
1
21
#pragma once
22
#ifndef CUSTOM_RESULT_DEFINITION
23
#include "
catapult/validators/ValidationResult.h
"
24
25
namespace
catapult
{
namespace
validators {
26
27
#endif
28
#define DEFINE_NAMESPACE_RESULT(DESCRIPTION, CODE) DEFINE_VALIDATION_RESULT(Failure, Namespace, DESCRIPTION, CODE, None)
30
31
// region common
32
34
DEFINE_NAMESPACE_RESULT
(Invalid_Duration, 1);
35
37
DEFINE_NAMESPACE_RESULT
(Invalid_Name, 2);
38
40
DEFINE_NAMESPACE_RESULT
(Name_Id_Mismatch, 3);
41
43
DEFINE_NAMESPACE_RESULT
(Expired, 4);
44
46
DEFINE_NAMESPACE_RESULT
(Owner_Conflict, 5);
47
49
DEFINE_NAMESPACE_RESULT
(Id_Mismatch, 6);
50
51
// endregion
52
53
// region namespace
54
56
DEFINE_NAMESPACE_RESULT
(Invalid_Namespace_Type, 100);
57
59
DEFINE_NAMESPACE_RESULT
(Root_Name_Reserved, 101);
60
62
DEFINE_NAMESPACE_RESULT
(Too_Deep, 102);
63
65
DEFINE_NAMESPACE_RESULT
(Parent_Unknown, 103);
66
68
DEFINE_NAMESPACE_RESULT
(Already_Exists, 104);
69
71
DEFINE_NAMESPACE_RESULT
(Already_Active, 105);
72
74
DEFINE_NAMESPACE_RESULT
(Eternal_After_Nemesis_Block, 106);
75
77
DEFINE_NAMESPACE_RESULT
(Max_Children_Exceeded, 107);
78
80
DEFINE_NAMESPACE_RESULT
(Alias_Invalid_Action, 108);
81
83
DEFINE_NAMESPACE_RESULT
(Alias_Namespace_Unknown, 109);
84
86
DEFINE_NAMESPACE_RESULT
(Alias_Already_Exists, 110);
87
89
DEFINE_NAMESPACE_RESULT
(Alias_Does_Not_Exist, 111);
90
92
DEFINE_NAMESPACE_RESULT
(Alias_Owner_Conflict, 112);
93
95
DEFINE_NAMESPACE_RESULT
(Alias_Unlink_Type_Inconsistency, 113);
96
98
DEFINE_NAMESPACE_RESULT
(Alias_Unlink_Data_Inconsistency, 114);
99
101
DEFINE_NAMESPACE_RESULT
(Alias_Invalid_Address, 115);
102
103
// endregion
104
105
#ifndef CUSTOM_RESULT_DEFINITION
106
}}
107
#endif
catapult::validators::DEFINE_NAMESPACE_RESULT
DEFINE_NAMESPACE_RESULT(Invalid_Duration, 1)
Validation failed because the duration has an invalid value.
ValidationResult.h
catapult
Definition:
AddressExtractionExtension.cpp:28
catapult-server
plugins
txes
namespace
src
validators
Results.h
Generated by
1.8.16