fastbeans 0.4.3 → 0.4.4

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
  !binary "U0hBMQ==":
3
- metadata.gz: ab341c73978b21a62e372c3e23da95d72e389dfa
4
- data.tar.gz: 0db338be50a9bafbdc46aba5be3327fb45552ba4
3
+ metadata.gz: 1161970b4a49869f2568eb59ce8675f51091ab14
4
+ data.tar.gz: 60733d1ea8cdcca708c9e2f320ac2c0317da06cd
5
5
  !binary "U0hBNTEy":
6
- metadata.gz: a9dd4a29b0c1d3d9c43c1444a6181c8fab0bd28aa9c12f37cf4895d06349179cbf4eb14a6b866df79e8385ed6079164a60d8d5226c66563a1cd6edaa8f55ba16
7
- data.tar.gz: 29c1ecd44b3a3b99fe33ca62ee1a3554c04a4788f74845967c462f7db334d4a4ea92f7a367b11d714d75faeadaeba90e7621b9e679de4ba9e80bb62b52dae4e5
6
+ metadata.gz: cdfeeaec66f7c81f6e32df893bf5bbbb3486da2744dea2e5ca3f3d186a44c54e251398886033b75170a54165b3adc3cd6bb4355d05213a22ea9cb466c4f92310
7
+ data.tar.gz: 474c17dc90adf4561be28d71dcb31b10274a79332a4cea862db69d019131eb365b5dc7fd7d5f7d6c322cf4cfd374991bd43c31db73c7ef3005e55c005894779f
@@ -2,26 +2,13 @@ module Fastbeans
2
2
 
3
3
  class RPCException < StandardError
4
4
  attr_accessor :orig_exc
5
-
6
- def initialize(msg, java_backtrace=nil)
7
- super(msg)
8
- @java_backtrace_arr = if java_backtrace.is_a?(String)
9
- java_backtrace.split(/\n/).map(&:strip)
10
- else
11
- []
12
- end
13
- end
14
5
  end
15
6
 
16
7
  class RemoteCallFailed < Fastbeans::RPCException; end
17
8
  class RemoteException < Fastbeans::RPCException; end
18
9
  class RemoteConnectionFailed < Fastbeans::RPCException; end
19
10
  class RemoteConnectionDead < Fastbeans::RPCException; end
20
- class AutogeneratedException < Fastbeans::RPCException
21
- def backtrace
22
- [@java_backtrace_arr, super].flatten.compact
23
- end
24
- end
11
+ class AutogeneratedException < Fastbeans::RPCException; end
25
12
  class ResponseSignatureMismatch < RemoteConnectionFailed; end
26
13
  class ResponseReadTimeout < RemoteCallFailed; end
27
14
 
@@ -26,7 +26,7 @@ module Fastbeans
26
26
  unless error?
27
27
  @raw_response[1]
28
28
  else
29
- raise to_exception
29
+ raise_exception
30
30
  end
31
31
  end
32
32
 
@@ -34,7 +34,9 @@ module Fastbeans
34
34
  name = camelize(underscore(@raw_response["fastbeans-error"]))
35
35
  error = @raw_response["error-information"]
36
36
 
37
- Fastbeans.exception(name).new("%s. Call: %s" % [error["message"], error["call"]], error["backtrace"])
37
+ msg = "%s. Call: %s" % [error["message"], error["call"]]
38
+ backtrace = error["backtrace"] + caller
39
+ raise Fastbeans.exception(name), msg, backtrace
38
40
  end
39
41
 
40
42
  def camelize(term, uppercase_first_letter = true)
@@ -1,3 +1,3 @@
1
1
  module Fastbeans
2
- VERSION = "0.4.3"
2
+ VERSION = "0.4.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastbeans
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dima Sabanin