Documentation for this macro can be found at frame_support::pallet_macros::error.
frame_support::pallet_macros::error