public class

SalesforceExceptionHandlerAdapter

extends Object
java.lang.Object
   ↳ org.mule.modules.salesforce.api.SalesforceExceptionHandlerAdapter

Class Overview

Centralized handler for Salesforce exceptions, to check if a reconnection exception has to be thrown

Summary

Fields
private static Logger logger
Public Constructors
SalesforceExceptionHandlerAdapter()
Public Methods
static Exception analyzeRestException(Exception e)
Returns a concrete exception to be thrown by analyzing the parametrized one
static Exception analyzeSoapException(Exception e)
Returns a concrete exception to be thrown by analyzing the parametrized one
[Expand]
Inherited Methods
From class java.lang.Object

Fields

private static Logger logger

Public Constructors

public SalesforceExceptionHandlerAdapter ()

Public Methods

public static Exception analyzeRestException (Exception e)

Returns a concrete exception to be thrown by analyzing the parametrized one

Parameters
e Exception to be analyzed
Returns
  • SalesforceSessionExpiredException if the parametrized exception e indicates that the session has been invalidated, otherwise will return the same exception it received without any change.

public static Exception analyzeSoapException (Exception e)

Returns a concrete exception to be thrown by analyzing the parametrized one

Parameters
e Exception to be analyzed
Returns
  • SalesforceSessionExpiredException if the parametrized exception e indicates that the session has been invalidated, otherwise will return a RuntimeException with the parametrized exception as cause.