Sablier handles errors with the convenient and gas-efficient custom error syntax introduced in Solidity v0.8.4.
The error data encoding is identical to the ABI encoding used for functions, e.g.:
error SablierV2Lockup_Unauthorized(address caller, uint256 streamId);
Yields the following 4-byte selector in the contract's ABI:
With the exception of a few generics, all errors in Sablier V2 adhere to the naming pattern
Incorporating the contract name as a prefix offers context, making it easier for end users to pinpoint the contract responsible for a reverted transaction. This approach is particularly helpful for complex transactions involving multiple contracts.
Click here to see the full error list in V2 Core.
Click here to see the full error list in V2 Periphery.