Announcements
This site is in read only until July 22 as we migrate to a new platform; refer to this community post for more details.
Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Apigee javacallout - ABORTING

phanim
New Member

Q) Is there a difference between using:

ExecutionResult result = new ExecutionResult(false, Action.ABORT); 
result.setErrorResponse("An error occurred"); 
return result; 

and

messageContext.getErrorMessage().setContent("An error occurred"); 
return ExecutionResult.ABORT; 

Which is why preferable?

0 0 178
0 REPLIES 0