Skip to main content
This page lists every custom error the CoFHE host-chain contracts (TaskManager, ACL, PlaintextsStorage, and ACPShareRegistry) and FHE.sol can raise. Each entry gives the 4-byte selector that appears in an execution reverted: 0x... message, the full signature, and what triggers it. The list is generated from the contract sources as deployed on the public testnets, checked against Sepolia on 2026-09-01, and from @fhenixprotocol/cofhe-contracts 0.2.0.
The @fhenixprotocol/cofhe-errors package (1.0.2) predates these contracts. It cannot decode errors added since, such as NotOnAccessList or NotShared, and it still lists OnlyAggregatorAllowed, which the TaskManager no longer raises. Treat this page as the source of truth and see the package page for what it does cover.

Errors by contract

TaskManager

The TaskManager validates every FHE operation before queueing it. Most errors a contract hits during development come from here. InvalidBytesLength and OnlyOwnerAllowed are declared in the TaskManager source but never raised.

ACL

The ACL records which accounts may use each handle. The first six errors come from the ACL itself. The four PermissionInvalid_* errors come from the Access Control Permission (ACP) check that guards its view functions.

ACPShareRegistry

The ACPShareRegistry holds sharing ACPs posted onchain for their recipient to pick up.

PlaintextsStorage

PlaintextsStorage holds published decryption results. Only the TaskManager writes to it.

FHE library

These errors are raised inside your own contract by FHE.sol and ICofhe.sol, before any call reaches the TaskManager. InvalidHexCharacter(bytes1) (0x01d4fab6) is declared in FHE.sol but never raised.

Inherited OpenZeppelin errors

The host-chain contracts are UUPS proxies administered with OpenZeppelin roles, so their ABIs also carry these errors. They surface only on admin, upgrade, or signature-parsing paths. NotLegacyOwner is a CoFHE addition used once, during the migration from the previous owner-based admin.

All errors alphabetically

57 errors in total.