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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 24ea4449f0a1a046d1eb279ff79a5264023e2d491a29fe065da08779973a517a
4
- data.tar.gz: 118adfc3c279eac422329ab3755ee70100c3dafa6b4102d9b9fa5e28c539df64
3
+ metadata.gz: b226bf96b643cb84becf9703ed3089a2fd3fb6d5dd7c48ca854f6e5afaae214a
4
+ data.tar.gz: a7592f19082757e2b4d9a623b4c3f2c0ec3464d73c58fab50106f396ccff2bb2
5
5
  SHA512:
6
- metadata.gz: cf1b7111d44504c36e6b0e8cd1ddccc1afa32852bc591a1440c03ffe65355bbf8f4b814004ca769b9f7d190b34ddaf0586e347e337df51b1626a0d4911796760
7
- data.tar.gz: e7083b373203caf0c77ea90f9f1e6dd9459b9d5daa24051c15673c6991baec9c519ad91f3d03de05291de6d0b667a804ca583b88568db1bdca359229d08fe03c
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, "Error in fail action: #{e.message}", e.backtrace
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Toolx
4
- VERSION = '0.2.4'.freeze
4
+ VERSION = '0.2.5'.freeze
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: toolx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pawel Niemczyk