toolx 0.2.4 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/toolx/core/operation/flow.rb +8 -2
- data/lib/toolx/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b226bf96b643cb84becf9703ed3089a2fd3fb6d5dd7c48ca854f6e5afaae214a
|
4
|
+
data.tar.gz: a7592f19082757e2b4d9a623b4c3f2c0ec3464d73c58fab50106f396ccff2bb2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ec23d6768ccbe3c019f711eca31f9b2d6642284d882593a3e3e02d10a263a3402738c5faef494efaad55124ba2377134f5ed929d16205e4c708f75e54bbbc32
|
7
|
+
data.tar.gz: 8c1ad828692754eac3d1fef3fd4f38b1d9f9c3b002bca3d11805e7fe2f1ffe8720c74ac563cbd20393145c45ccde132712daa0f6bf3e1d7c172114751ae82ce2
|
@@ -22,8 +22,14 @@ module Toolx::Core::Operation::Flow
|
|
22
22
|
OperationAlreadyInitialized = Class.new(ExecutorError)
|
23
23
|
OperationNotInitialized = Class.new(ExecutorError)
|
24
24
|
ActionException = Class.new(::Toolx::Core::Errors::NestedStandardError)
|
25
|
-
OnFailException = Class.new(ActionException)
|
26
25
|
OnSuccessException = Class.new(ActionException)
|
26
|
+
OnFailException = Class.new(ActionException) do
|
27
|
+
attr_reader :operation_exception
|
28
|
+
def initialize(msg = nil, nested = $ERROR_INFO, operation_exception = nil)
|
29
|
+
super(msg, nested)
|
30
|
+
@operation_exception = operation_exception
|
31
|
+
end
|
32
|
+
end
|
27
33
|
|
28
34
|
def initialize(operation_class)
|
29
35
|
@operation_class = operation_class
|
@@ -230,7 +236,7 @@ module Toolx::Core::Operation::Flow
|
|
230
236
|
begin
|
231
237
|
execute_action_kind(:fail)
|
232
238
|
rescue => e
|
233
|
-
raise OnFailException
|
239
|
+
raise OnFailException.new("Error in fail action: #{e.message}", e, exception)
|
234
240
|
end
|
235
241
|
end
|
236
242
|
self
|
data/lib/toolx/version.rb
CHANGED