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 +4 -4
- data/lib/salesforce_bulk/salesforce_error.rb +5 -1
- data/lib/salesforce_bulk/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: feee7d358115c96eb774b47069c64da810117c95ddc9f13a049b44a0eddfd421
|
4
|
+
data.tar.gz: 0ab01c716e02dc9d07f6fc57f829ad1b336e409b6ee95287ce30f037bb243d5d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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
|
+
date: 2023-02-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: xml-simple
|