sneaql 0.0.22-java → 0.0.23-java

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3d812250662af5fd5432648e53a2e49347cd1bfc9ea0293fe8aa16e9de4e0918
4
- data.tar.gz: 2df8753efb6b8cbca6d9d9e4e543415b9c27d626885028fdcadcce6dd8f2d111
3
+ metadata.gz: 3253ac685539dd5150b384369ff631ec34d4898118e9ee3275dc400a9f6c55d6
4
+ data.tar.gz: 514fd1ba705a7ea5797c36d4d4fc440432f63f88c82b8c04ec481c5ea6a6f553
5
5
  SHA512:
6
- metadata.gz: c2936baac3a9065153829014e3bf056cb03c13565233d6a1f4687e514db6bddc9e6e79d8dc6baf3d7a7c51c7336da667ead07613d8f69a805f8634a955a10b30
7
- data.tar.gz: 6c6e2cd701d10e864a53e37bfe8f0d7de8c086633a0a0b2c8120a164ac82ada9f6a5796f8bb7dcf44c7e6517b0756164fdb561e0b12d34c06ff43653d81dd43c
6
+ metadata.gz: 1e7360df8b0e665ef210a769aa48839fa600fc6cc3ca43a8e129abbda28a305f8be1f9c52b6278ff0ad294114e7a06fbd5a45dee0d8428ab5b0223d0f8ca567a
7
+ data.tar.gz: 970cdcb674d360849579f548dfc25a0df6e034975e5251c810665275722cf7ab721f6fab99b2f36fc3193c71dd2085795a427ecc1fac55436cd61f9d32cf4fa6
@@ -440,6 +440,15 @@ module Sneaql
440
440
 
441
441
  @exception_manager.pending_error = nil
442
442
  @exception_manager.last_iterated_record = nil
443
+
444
+ when 'fail' then
445
+ @logger.error("#{@exception_manager.pending_error.message}")
446
+ if @exception_manager.pending_error.backtrace
447
+ @exception_manager.pending_error.backtrace.each {|b| @logger.debug(b) }
448
+ end
449
+ @logger.info("exiting sneaql due to failure")
450
+
451
+ raise Sneaql::Exceptions::ForceFailure
443
452
  end
444
453
  end
445
454
  end
@@ -101,5 +101,12 @@ module Sneaql
101
101
  super
102
102
  end
103
103
  end
104
+
105
+ # Utilized by fail option of on_error
106
+ class ForceFailure < BaseError
107
+ def initialize(msg = 'Sneaql is forcing an exit due to an error condition')
108
+ super
109
+ end
110
+ end
104
111
  end
105
112
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sneaql
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.22
4
+ version: 0.0.23
5
5
  platform: java
6
6
  authors:
7
7
  - jeremy winters
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-16 00:00:00.000000000 Z
11
+ date: 2017-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement