public DataApiException(java.lang.String message)
Constructs a DataApiException with the specified detail message.
Parameters: message - The detail message (which is saved for later
retrieval by the Throwable.getMessage() method)
DataApiException
public DataApiException(java.lang.String message,
java.lang.Throwable cause)
Constructs a DataApiException with the specified detail message and
cause.
Parameters: message - The detail message (which is saved for later
retrieval by the Throwable.getMessage() method) cause - The cause
(which is saved for later retrieval by the Throwable.getCause()
method). (A null value is permitted, and indicates that the cause is
nonexistent or unknown.)
DataApiException
public DataApiException(java.lang.String message,
java.util.List<DataApiError> errors)
Constructs a DataApiException with the specified detail message and list
of API errors.
Parameters: message - The detail message (which is saved for later
retrieval by the Throwable.getMessage() method) errors - The list
API errors (which is saved for later retrieval by the
getDataApiErrors() method)
Method Details
getDataApiErrors
@Nonnull public java.util.List<DataApiError> getDataApiErrors()
Returns the list of DataApiErrors that occurred. This list might be
empty if the exception wasn’t caused by an API error.
Returns: The list of DataApiErrors that occurred.
Product Retirement Announcement
Salesforce Functions is no longer available for purchase or renewal. To preserve the capabilities that Salesforce Functions provided to your org, deploy an alternative solution before your existing order term ends. See Salesforce Functions Retirement for more information on migrating your functions. Contact your Salesforce Account Executive for more information on Heroku.