question: public static void printStackTrace ( SQLException e , PrintWriter pw ) { SQLException next = e ; while ( next != null ) { next . printStackTrace ( pw ) ; next = next . getNextException ( ) ; if ( next != null ) { pw . println ( "Next SQLException:" ) ; } } }
target:  Print the stack trace for a SQLException to a specified PrintWriter.