raven-compiler/src/main/java/org/raven/compiler/Method.java
/**
     * Throw an exception with the given message
     *
     * @param ex      The type of exception to throw
     * @param message The message to leave
     */
Throw an exception with the given message
@param ex      The type of exception to throw
@param message The message to leave
Throw an exception with the given message @param ex The type of exception to throw @param message The message to leave
private <T extends Throwable> void throwException(final Class<T> ex, final String message) {
        visitTypeInsn(NEW, ex.getTypeName().replace(".", "/"));
        visitInsn(DUP);
        visitLdcInsn(message);
        visitMethodInsn(INVOKESPECIAL, getInternalName(ex), "<init>", "(Ljava/lang/String;)V", false);
        visitInsn(ATHROW);
    }
private < T extends Throwable > void throwException ( final Class < T > ex , final String message ) { visitTypeInsn ( NEW , ex . getTypeName ( ) . replace ( "." , "/" ) ) ; visitInsn ( DUP ) ; visitLdcInsn ( message ) ; visitMethodInsn ( INVOKESPECIAL , getInternalName ( ex ) , "<init>" , "(Ljava/lang/String;)V" , false ) ; visitInsn ( ATHROW ) ; }
Throw an exception with the given message
 @param ex      The type of exception to throw
 @param message The message to leave
Throw an exception with the given message @param ex The type of exception to throw @param message The message to leave