@@ -64,7 +64,7 @@ public JobInfo createJob(JobInfo jobInfo) throws AsyncApiException {
64
64
try {
65
65
return bulkConnection .createJob (jobInfo );
66
66
} catch (AsyncApiException e ) {
67
- throw new SalesforceQueryExecutionException (e . getMessage () );
67
+ throw new SalesforceQueryExecutionException (e );
68
68
}
69
69
});
70
70
return (JobInfo ) resultJobInfo ;
@@ -80,7 +80,7 @@ public JobInfo getJobStatus(String jobId) throws AsyncApiException {
80
80
try {
81
81
return bulkConnection .getJobStatus (jobId );
82
82
} catch (AsyncApiException e ) {
83
- throw new SalesforceQueryExecutionException (e . getMessage () );
83
+ throw new SalesforceQueryExecutionException (e );
84
84
}
85
85
});
86
86
return (JobInfo ) resultJobInfo ;
@@ -97,7 +97,7 @@ public void updateJob(JobInfo jobInfo) throws AsyncApiException {
97
97
try {
98
98
return bulkConnection .updateJob (jobInfo );
99
99
} catch (AsyncApiException e ) {
100
- throw new SalesforceQueryExecutionException (e . getMessage () );
100
+ throw new SalesforceQueryExecutionException (e );
101
101
}
102
102
});
103
103
}
@@ -112,7 +112,7 @@ public BatchInfoList getBatchInfoList(String jobId) throws AsyncApiException {
112
112
try {
113
113
return bulkConnection .getBatchInfoList (jobId );
114
114
} catch (AsyncApiException e ) {
115
- throw new SalesforceQueryExecutionException (e . getMessage () );
115
+ throw new SalesforceQueryExecutionException (e );
116
116
}
117
117
});
118
118
return (BatchInfoList ) batchInfoList ;
@@ -128,7 +128,7 @@ public BatchInfo getBatchInfo(String jobId, String batchId) throws AsyncApiExcep
128
128
try {
129
129
return bulkConnection .getBatchInfo (jobId , batchId );
130
130
} catch (AsyncApiException e ) {
131
- throw new SalesforceQueryExecutionException (e . getMessage () );
131
+ throw new SalesforceQueryExecutionException (e );
132
132
}
133
133
});
134
134
return (BatchInfo ) batchInfo ;
@@ -144,7 +144,7 @@ public InputStream getBatchResultStream(String jobId, String batchId) throws Asy
144
144
try {
145
145
return bulkConnection .getBatchResultStream (jobId , batchId );
146
146
} catch (AsyncApiException e ) {
147
- throw new SalesforceQueryExecutionException (e . getMessage () );
147
+ throw new SalesforceQueryExecutionException (e );
148
148
}
149
149
});
150
150
return (InputStream ) inputStream ;
@@ -160,7 +160,7 @@ public InputStream getQueryResultStream(String jobId, String batchId, String res
160
160
try {
161
161
return bulkConnection .getQueryResultStream (jobId , batchId , resultId );
162
162
} catch (AsyncApiException e ) {
163
- throw new SalesforceQueryExecutionException (e . getMessage () );
163
+ throw new SalesforceQueryExecutionException (e );
164
164
}
165
165
});
166
166
return (InputStream ) inputStream ;
@@ -177,7 +177,7 @@ public BatchInfo createBatchFromStream(String query, JobInfo job) throws AsyncAp
177
177
try {
178
178
return createBatchFromStreamI (query , job );
179
179
} catch (AsyncApiException e ) {
180
- throw new SalesforceQueryExecutionException (e . getMessage () );
180
+ throw new SalesforceQueryExecutionException (e );
181
181
}
182
182
});
183
183
return (BatchInfo ) batchInfo ;
0 commit comments