error_t error( void ) { error_t err = get_thread_error(); set_thread_error( ERROR_NONE ); return err; }
void Exception::thread_error(STATE, const char* reason) { RubyException::raise(make_exception(state, get_thread_error(state), reason)); }