neo4j-java-driver 1.7.0-java → 1.7.1-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: edb528dde0fb79cba06f8c524c1379631debb6946c57dedd3fb3dd6dfb3e2ee9
4
- data.tar.gz: 26fc0d2ec9464a45463284b3787bf3d01180f1ae73e81731b1c6d90e83e72444
3
+ metadata.gz: 8dfc028b9d5569edcb8b490d9f748211ab389b0cca5ff41dd6adb087bf5b9cc2
4
+ data.tar.gz: c4674df8e08709b345664788bcbaf7c5c580fe2dadc7ae3c6287548f0a2cde3d
5
5
  SHA512:
6
- metadata.gz: caacb575552604baceb66514c4168d2c7fd8bbfab7639537afea03d9708cf588ba07d1a70eec8174734965f9f08758d7d1503427c1fad24b4c59a75f514c5cd7
7
- data.tar.gz: fae35515bc2d68a4b17032f17f76b53ac43025c83f5fb5fb16820a00fdc0b175ec404b1f782c01c762fefcd626e87a3540f15613e6ad381f8e5cea077d6a42bb
6
+ metadata.gz: e624744ffe0cde45b2bc18f043ecf2e196ee9ec692c13f543f4bc512d17d7af4ac2be239b4e3c885adddeed7af545ff560f6a41f325a609dd44dcf17058c5676
7
+ data.tar.gz: aa2adb68ead5f0cde84d364dd0e25084921651025b7b77d663b8b86460be295631dfe67f51334553e2df6c8ab0e16e6b132f2eb70dad278cccc77c4421b5bcd6
@@ -20,8 +20,13 @@ module Neo4j
20
20
 
21
21
  def reverse_check
22
22
  yield
23
- rescue StandardError => e
24
- raise(e.cause || ExceptionMapper.reverse_exception_class(e)&.new('') || e)
23
+ rescue Neo4j::Driver::Exceptions::ServiceUnavailableException => e
24
+ raise(e.cause || org.neo4j.driver.v1.exceptions.ServiceUnavailableException.new(e.message))
25
+ rescue Neo4j::Driver::Exceptions::Neo4jException,
26
+ Neo4j::Driver::Exceptions::NoSuchRecordException,
27
+ Neo4j::Driver::Exceptions::UntrustedServerException,
28
+ Neo4j::Driver::Exceptions::IllegalStateException => e
29
+ raise(e.cause || e)
25
30
  end
26
31
  end
27
32
  end
@@ -26,13 +26,6 @@ module Neo4j
26
26
  [code, message, self, suppressed.map(&method(:mapped_exception))]
27
27
  end
28
28
 
29
- def self.reverse_exception_class(exception)
30
- case exception
31
- when Neo4j::Driver::Exceptions::ServiceUnavailableException
32
- ServiceUnavailableException
33
- end
34
- end
35
-
36
29
  private
37
30
 
38
31
  def mapped_exception_class(exception)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Neo4j
4
4
  module Driver
5
- VERSION = '1.7.0'
5
+ VERSION = '1.7.1'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: neo4j-java-driver
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.0
4
+ version: 1.7.1
5
5
  platform: java
6
6
  authors:
7
7
  - Heinrich Klobuczek
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-07 00:00:00.000000000 Z
11
+ date: 2020-09-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement