public void throwException ( final Type type , final String msg ) { newInstance ( type ) ; dup ( ) ; push ( msg ) ; invokeConstructor ( type , Method . getMethod ( "void <init> (String)" ) ) ; throwException ( ) ; }
Generates the instructions to create and throw an exception . The exception class must have a constructor with a single String argument .