fastbeans 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fastbeans/errors.rb +9 -13
- data/lib/fastbeans/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab341c73978b21a62e372c3e23da95d72e389dfa
|
4
|
+
data.tar.gz: 0db338be50a9bafbdc46aba5be3327fb45552ba4
|
5
5
|
!binary "U0hBNTEy":
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9dd4a29b0c1d3d9c43c1444a6181c8fab0bd28aa9c12f37cf4895d06349179cbf4eb14a6b866df79e8385ed6079164a60d8d5226c66563a1cd6edaa8f55ba16
|
7
|
+
data.tar.gz: 29c1ecd44b3a3b99fe33ca62ee1a3554c04a4788f74845967c462f7db334d4a4ea92f7a367b11d714d75faeadaeba90e7621b9e679de4ba9e80bb62b52dae4e5
|
data/lib/fastbeans/errors.rb
CHANGED
@@ -3,20 +3,12 @@ module Fastbeans
|
|
3
3
|
class RPCException < StandardError
|
4
4
|
attr_accessor :orig_exc
|
5
5
|
|
6
|
-
def initialize(msg,
|
6
|
+
def initialize(msg, java_backtrace=nil)
|
7
7
|
super(msg)
|
8
|
-
@
|
9
|
-
|
10
|
-
|
11
|
-
def backtrace
|
12
|
-
if @backtrace
|
13
|
-
if @backtrace.is_a?(String)
|
14
|
-
@backtrace.split(/\n/).map(&:strip)
|
15
|
-
else
|
16
|
-
@backtrace
|
17
|
-
end
|
8
|
+
@java_backtrace_arr = if java_backtrace.is_a?(String)
|
9
|
+
java_backtrace.split(/\n/).map(&:strip)
|
18
10
|
else
|
19
|
-
|
11
|
+
[]
|
20
12
|
end
|
21
13
|
end
|
22
14
|
end
|
@@ -25,7 +17,11 @@ module Fastbeans
|
|
25
17
|
class RemoteException < Fastbeans::RPCException; end
|
26
18
|
class RemoteConnectionFailed < Fastbeans::RPCException; end
|
27
19
|
class RemoteConnectionDead < Fastbeans::RPCException; end
|
28
|
-
class AutogeneratedException < Fastbeans::RPCException
|
20
|
+
class AutogeneratedException < Fastbeans::RPCException
|
21
|
+
def backtrace
|
22
|
+
[@java_backtrace_arr, super].flatten.compact
|
23
|
+
end
|
24
|
+
end
|
29
25
|
class ResponseSignatureMismatch < RemoteConnectionFailed; end
|
30
26
|
class ResponseReadTimeout < RemoteCallFailed; end
|
31
27
|
|
data/lib/fastbeans/version.rb
CHANGED