chore(docs): document custom exception handling

Ref: https://github.com/Elgg/Elgg/pull/6606