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
Provides a SalesForce service exception class.
- Since:
- 3.6.5
- See Also:
-
Constructor Summary
ConstructorDescriptionSalesForceException
(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
Modifier and TypeMethodDescriptionDeprecated.use getOperation insteadtoString()
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 Details
-
SalesForceException
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
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
Create a SalesForce service exception with the given response and operation.- Parameters:
response
- the service responseoperation
- the operation which failed
-
SalesForceException
Create a SalesForce service exception with the given message and cause.- Parameters:
message
- the error messagecause
- the cause of the error
-
SalesForceException
Create a SalesForce service exception with the given message.- Parameters:
message
- the error message
-
SalesForceException
Create a SalesForce service exception with the given cause.- Parameters:
cause
- the cause of the error
-
-
Method Details
-
getResponse
- Returns:
- the error response
-
getContext
Deprecated.use getOperation instead- Returns:
- the operation which failed
-
getOperation
- Returns:
- the operation which failed
-
toString
Return the string representation of the object.
-