Would this perhaps better fit into an "exceptions" module?