When invoking the ccipSendfunction, it is possible to encounter various errors. These might be thrown either by the CCIP router or by one of the downstream contracts called by the CCIP router. Below is a compiled list of potential errors you might encounter. Referencing this list will enable you to capture and handle these exceptions gracefully.
Thrown when a price cannot be found for a specific token.
BucketOverfilled
-
This error should never be thrown as it indicates an invalid bucket state.
AggregateValueMaxCapacityExceeded
uint256 capacity
uint256 requested
Thrown when the user requests to transfer more value than the capacity of the aggregate rate limit bucket.
TokenMaxCapacityExceeded
uint256 capacity
uint256 requested
address tokenAddress
Thrown when the user requests to transfer more of a token than the capacity of the bucket.
AggregateValueRateLimitReached
uint256 minWaitInSeconds
uint256 available
Thrown when the user requests to transfer more value than currently available in the bucket. The user might have to wait for at least minWaitInSeconds for enough availability or transfer the currently available amount.
TokenRateLimitReached
uint256 minWaitInSeconds
uint256 available
address tokenAddress
Thrown when the user requests to transfer more of a token than currently available in the bucket. The user might have to wait at least minWaitInSeconds for enough availability, or transfer the currently available amount.