Package com.avoka.component.salesforce
Class SalesForceException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.avoka.component.salesforce.SalesForceException
-
- All Implemented Interfaces:
Serializable
public class SalesForceException extends RuntimeException
Provides a SalesForce service exception class.- Since:
- 3.6.5
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SalesForceException(String message)Create a SalesForce service exception with the given message.SalesForceException(String response, String operation)Create a SalesForce service exception with the given response and operation.SalesForceException(String response, String operation, SalesForceConnection connection)Create a SalesForce service exception with the given response, operation and connection.SalesForceException(String message, Throwable cause)Create a SalesForce service exception with the given message and cause.SalesForceException(Throwable cause)Create a SalesForce service exception with the given cause.SalesForceException(Throwable cause, String operation, SalesForceConnection connection)Create a SalesForce service exception with the given cause, operation and connection.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringgetContext()Deprecated.use getOperation insteadStringgetOperation()StringgetResponse()StringtoString()Return the string representation of the object.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Constructor Detail
-
SalesForceException
public SalesForceException(Throwable cause, String operation, SalesForceConnection connection)
Create a SalesForce service exception with the given cause, operation and connection.- Parameters:
cause- the service responseoperation- the operation which failedconnection- the SalesForceConnection- Since:
- 4.2.0
-
SalesForceException
public SalesForceException(String response, String operation, SalesForceConnection connection)
Create a SalesForce service exception with the given response, operation and connection.- Parameters:
response- the service responseoperation- the operation which failedconnection- the SalesForceConnection- Since:
- 4.2.0
-
SalesForceException
public SalesForceException(String response, String operation)
Create a SalesForce service exception with the given response and operation.- Parameters:
response- the service responseoperation- the operation which failed
-
SalesForceException
public SalesForceException(String message, Throwable cause)
Create a SalesForce service exception with the given message and cause.- Parameters:
message- the error messagecause- the cause of the error
-
SalesForceException
public SalesForceException(String message)
Create a SalesForce service exception with the given message.- Parameters:
message- the error message
-
SalesForceException
public SalesForceException(Throwable cause)
Create a SalesForce service exception with the given cause.- Parameters:
cause- the cause of the error
-
-