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

Luca Burgazzoli commented on CAMEL-10846:
-----------------------------------------

The http code should also be set in an header, maybe SalesforceApiReturnCode

> Handle 404 situations more gracefully
> -------------------------------------
>
>                 Key: CAMEL-10846
>                 URL: https://issues.apache.org/jira/browse/CAMEL-10846
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-salesforce
>    Affects Versions: 2.19.0
>            Reporter: Zoran Regvart
>            Assignee: Zoran Regvart
>            Priority: Minor
>
> When Salesforce API returns 404 status indicating that an SObject could not 
> be found using one of the operations for retrieving the SObjects, it should 
> throw an more descriptive {{SalesforceException}}, for instance 
> {{NoSuchSObjectException}}.
> Also add an option that would return {{null}} in case of 404 status instead 
> of throwing an exception, with the default to throw the exception.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to