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