salesforcebulk 4.0.3 → 4.0.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
  SHA256:
3
- metadata.gz: 23924cf7343edb50354ce417301d08a3bf4065f7f07c9f166d525ebc26df1b91
4
- data.tar.gz: b18a09f9695b629081da7f09e00edc5ca5c1cb9424512c42ae5ee55f83a1689f
3
+ metadata.gz: feee7d358115c96eb774b47069c64da810117c95ddc9f13a049b44a0eddfd421
4
+ data.tar.gz: 0ab01c716e02dc9d07f6fc57f829ad1b336e409b6ee95287ce30f037bb243d5d
5
5
  SHA512:
6
- metadata.gz: 0a28b8252b9263b01fa3e5c0ce793c0cc0130fd0d1691c546fff6fb7848bf2069103dc7b1a5d489c8f426cf5af82320a747c97cd38707e6111054c0dfa9252c0
7
- data.tar.gz: 6e01558a369c92fe96102797fcf1c70589c693dff038ac5d3ca259a244824a2fcf19a9479d31007924f87e859d9618b79309f2b7d63501b3ab59175ea811848a
6
+ metadata.gz: 60643e38faab3e6b909a33ab19053f3a8e8804911921e0244d3297ee9865031e5944f87d15e8965df1c208dde1cb811a8cb1c886c792782a9a09dc2f70652c65
7
+ data.tar.gz: bd9313ffdb0c608059e120a68ee2e85784e8d35b0c43945b519da4915e8cece9c15e1cb2fced9cb2e1546bc669872e26829f9b1e9516d675aed908abb3fea449
@@ -5,6 +5,8 @@ module SalesforceBulk
5
5
  attr_accessor :response
6
6
  # The status code from the server response body.
7
7
  attr_accessor :error_code
8
+ # The exception code from Salesforce's response
9
+ attr_accessor :exception_code
8
10
 
9
11
  def initialize(response)
10
12
  self.response = response
@@ -20,9 +22,11 @@ module SalesforceBulk
20
22
  # (use invalid_error.xml for reference)
21
23
  if !data['exceptionMessage'].nil?
22
24
  message = data['exceptionMessage']
25
+ self.exception_code = data['exceptionCode']
23
26
  else
24
27
  # SOAP error response
25
28
  message = data['Body']['Fault']['faultstring']
29
+ self.exception_code = data['Body']['Fault']['faultcode']
26
30
  end
27
31
  end
28
32
  end
@@ -30,4 +34,4 @@ module SalesforceBulk
30
34
  super(message)
31
35
  end
32
36
  end
33
- end
37
+ end
@@ -1,3 +1,3 @@
1
1
  module SalesforceBulk
2
- VERSION = "4.0.3"
2
+ VERSION = "4.0.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: salesforcebulk
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.3
4
+ version: 4.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Javier Julio
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-11 00:00:00.000000000 Z
11
+ date: 2023-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: xml-simple