SfapApiException
class SfapApiException(val errorCode: String? = null, message: String? = null, val messageCode: String? = null, val source: String? = null) : Exception
An exception derived from an sfap_api endpoint failure response. See https://developer.salesforce.com/docs/einstein/genai/guide/access-models-api-with-rest.html#step-3-use-models-rest-api
Parameters
errorCode
The sfap_api error code
message
The sfap_api error message
messageCode
The sfap_api error code
source
The original sfap_api error response body