From solidity 0.8.4 custom errors can be defined, which are much more efficient than reverting with string revert reasons. solidoc currently ignores them. It would be nice if it produced an output, similar to the output of events.