Skip to content

Custom errors ​

ErrorMeaning
FeeTooHigh()Constructor fee exceeds 10%.
InvalidAmount()Required amount or duration is zero.
ZeroAddress()Required address is zero.
NotClient()Caller is not the escrow client.
NotFreelancer()Caller is not the assigned freelancer.
InvalidStatus(current, expected)Escrow is in the wrong state.
DeadlineNotPassed()Refund was requested too early.
TransferFailed()Token transfer or transferFrom returned false.
InsufficientBalance()Caller tried to withdraw too much.

The selected ERC-20 token can also revert internally. Those failures are not converted into escrow custom errors when the token itself reverts.

Documentation grounded in the current ERC-20 escrow implementation.