[ 
https://issues.apache.org/jira/browse/CAMEL-13180?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17445331#comment-17445331
 ] 

Jesse Sightler commented on CAMEL-13180:
----------------------------------------

Yes, but the only way that we came up with to do it was to override 
SalesforceComponent and override the createRestClientFor(final 
SalesforceEndpoint endpoint) method. We then have it returning an overridden 
RestClient instance that overrides the createRestException method to offer 
customized exception handling.

Its really tricky and fairly brittle.

> camel-salesforce - Apex calls could support more flexible response parsing
> --------------------------------------------------------------------------
>
>                 Key: CAMEL-13180
>                 URL: https://issues.apache.org/jira/browse/CAMEL-13180
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-salesforce
>            Reporter: Jesse Sightler
>            Priority: Major
>
> The current approach requires following a very strict format for error codes 
> other than 2xx. This isn't necessarily the case, though, for custom apex 
> classes.
> Ideally, it would be possible to (optionally) handle the parsing in the camel 
> route itself.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to