Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

ConnectApi Exceptions

The ConnectApi namespace contains exception classes.

All exceptions classes support built-in methods for returning the error message and exception type. See Exception Class and Built-In Exceptions.

The ConnectApi namespace contains these exceptions:

Exception Description
ConnectApi.ConnectApiException Any logic error in the way your application is utilizing ConnectApi code. This is equivalent to receiving a 400 error from Connect REST API.
ConnectApi.NotFoundException Any issues with the specified resource being found. This is equivalent to receiving a 404 error from Connect REST API.
ConnectApi.RateLimitException When you exceed the rate limit. This is equivalent to receiving a 503 Service Unavailable error from Connect REST API.