Modify affineExcept to be derived from std::exception, not have errnumber.