Code example for SQLException

Methods: getMessagegetErrorCodegetSQLState

0
 
    /** 
     * INTERNAL 
     */ 
    JdbcBatchUpdateException(SQLException next, int[] updateCounts) { 
        super(next.getMessage(), next.getSQLState(), next.getErrorCode(), updateCounts); 
        setNextException(next); 
    } 
 
    /** 
     * INTERNAL 
     */ 
    public void printStackTrace() { 
        // The default implementation already does that, 
        // but we do it again to avoid problems. 
        // If it is not implemented, somebody might implement it 
        // later on which would be a problem if done in the wrong way. 
        printStackTrace(System.err); 
    } 
 
    /**