CronCat errors macro
This package creates a procedural attribute macro that creates #[croncat_error], intended to be placed above the integrating contract's error enum, which is conventionally called ContractError.
Note: this macro should go above the usual Derive we see for this enum. The correct placement looks like this:
It will throw a compile-time error if it is not placed correctly.
The macro adds this enum variant:
CronCatError
It also adds this logic:
The above logic will allow helper functions in croncat-integration-utils to propagate errors in a manner consistent with the contract's errors.