Java SQLException appendToExceptionList(List list, SQLException sqlException)

Here you can find the source of appendToExceptionList(List list, SQLException sqlException)

Description

append To Exception List

License

Apache License

Declaration

public static List<SQLException> appendToExceptionList(List<SQLException> list, SQLException sqlException) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.sql.SQLException;

import java.util.LinkedList;
import java.util.List;

public class Main {
    public static List<SQLException> appendToExceptionList(List<SQLException> list, SQLException sqlException) {
        if (list == null) {
            list = new LinkedList<SQLException>();
        }//from   w w w. j a va  2 s . c  o  m
        list.add(sqlException);
        return list;

    }
}

Related

  1. convertSQLExceptionToString(SQLException e)
  2. createFeatureNotSupportedException()
  3. exceptionMsg2LocalizedStr(final Throwable e)
  4. exceptionMsg2str(final Throwable e)