Macros§
- error
- Generates an
Error::AnchorErrorthat includes file and line information.
Attribute Macros§
- error_
code - Generates
Errorandtype Result<T> = Result<T, Error>types to be used as return types from Anchor instruction handlers. Importantly, the attribute implementsFromon theErrorCodeto support converting from the user defined error enum into the generatedError.