#NEWLINE# @ moduledef . method ( 'throw' , name = 'symbol' ) #NEWLINE# def method_throw( self , space , name , w_value = None ) : #NEWLINE# #INDENT# from topaz.interpreter import Throw #NEWLINE# if ( not space . getexecutioncontext ( ) . is_in_catch_block_for_name ( name ) ) : #NEWLINE# #INDENT# raise space . error ( space . w_ArgumentError , ( 'uncaught throw :%s' % name ) ) #NEWLINE# #UNINDENT# if ( w_value is None ) : #NEWLINE# #INDENT# w_value = space . w_nil #NEWLINE# #UNINDENT# raise Throw ( name , w_value )