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:

ExceptionDescription
ConnectApi.ConnectApiExceptionAny logic error in the way your application is utilizing ConnectApi code. This is equivalent to receiving a 400 error from Connect REST API.
ConnectApi.NotFoundExceptionAny issues with the specified resource being found. This is equivalent to receiving a 404 error from Connect REST API.
ConnectApi.RateLimitExceptionWhen you exceed the rate limit. This is equivalent to receiving a 503 Service Unavailable error from Connect REST API.