exception::callback and related classes