Update throw_exception, core from develop.