Getting started Community Training Tutorials Documentation APIs, AI & Tools
public void someOperation(@Connection SalesforceRestClient client) { (1)
Response response = client.performSomeOperation(); (2)
if (response.getStatusCode() == 401) { (3)
throw new AccessTokenExpiredException(); (4)
}
}



