23
23
]
24
24
25
25
26
+ class NotExecutableNodeError (Exception ):
27
+ def __init__ (self , message : str = "This class should never be executed or instantiated directly." ):
28
+ super ().__init__ (message )
29
+
30
+ pass
31
+
32
+
26
33
class BaseBatchInvocation (BaseInvocation ):
27
34
batch_group_id : BATCH_GROUP_IDS = InputField (
28
35
default = "None" ,
@@ -32,7 +39,7 @@ class BaseBatchInvocation(BaseInvocation):
32
39
)
33
40
34
41
def __init__ (self ):
35
- raise NotImplementedError ( "This class should never be executed or instantiated directly." )
42
+ raise NotExecutableNodeError ( )
36
43
37
44
38
45
@invocation (
@@ -51,7 +58,7 @@ class ImageBatchInvocation(BaseBatchInvocation):
51
58
)
52
59
53
60
def invoke (self , context : InvocationContext ) -> ImageOutput :
54
- raise NotImplementedError ( "This class should never be executed or instantiated directly." )
61
+ raise NotExecutableNodeError ( )
55
62
56
63
57
64
@invocation (
@@ -70,7 +77,7 @@ class StringBatchInvocation(BaseBatchInvocation):
70
77
)
71
78
72
79
def invoke (self , context : InvocationContext ) -> StringOutput :
73
- raise NotImplementedError ( "This class should never be executed or instantiated directly." )
80
+ raise NotExecutableNodeError ( )
74
81
75
82
76
83
@invocation (
@@ -89,7 +96,7 @@ class IntegerBatchInvocation(BaseBatchInvocation):
89
96
)
90
97
91
98
def invoke (self , context : InvocationContext ) -> IntegerOutput :
92
- raise NotImplementedError ( "This class should never be executed or instantiated directly." )
99
+ raise NotExecutableNodeError ( )
93
100
94
101
95
102
@invocation (
@@ -108,4 +115,4 @@ class FloatBatchInvocation(BaseBatchInvocation):
108
115
)
109
116
110
117
def invoke (self , context : InvocationContext ) -> FloatOutput :
111
- raise NotImplementedError ( "This class should never be executed or instantiated directly." )
118
+ raise NotExecutableNodeError ( )
0 commit comments