Changed: call throw_exception() function instead of ordinary throw