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

Constructors

Link copied to clipboard
constructor(errorCode: String? = null, message: String? = null, messageCode: String? = null, source: String? = null)

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
val errorCode: String? = null
Link copied to clipboard
open val message: String?
Link copied to clipboard
val messageCode: String? = null
Link copied to clipboard
val source: String? = null