src/org/nutz/repo/org/objectweb/asm/commons/GeneratorAdapter.java
public void throwException(final Type type, final String msg) {
        newInstance(type);
        dup();
        push(msg);
        invokeConstructor(type, Method.getMethod("void <init> (String)"));
        throwException();
    }
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.

@param type
the class of the exception to be thrown.
@param msg
the detailed message of the exception.