---
schema_version: "1"
id: 9ac55d74a3ff15ab0564247487333b4169f74be67afa0bd207ea882a3c724625
title: ConnectApi Exceptions
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/connectAPI_exceptions.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/connectAPI_exceptions.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 86a5cbd15e84751ad48a1ccd77197e8a8df80f32974a70eea3173843918829bc
description: The ConnectApi namespace contains exception classes.
---
# 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](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_classes_exception_methods.htm "An exception denotes an error that disrupts the normal flow of code execution. You can use Apex built-in exceptions or create custom exceptions. All exceptions have common methods.").

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. |