/projects/derby-10.9.1.0/db-derby-10.9.1.0-src/java/stubs/jdbc4/java/sql/SQLException.java

https://gitlab.com/essere.lab.public/qualitas.class-corpus · Java · 40 lines · 18 code · 6 blank · 16 comment · 0 complexity · 3a8adab81961dc0e4fe9c79b27a0cb20 MD5 · raw file

  1. /*
  2. * Licensed to the Apache Software Foundation (ASF) under one or more
  3. * contributor license agreements. See the NOTICE file distributed with
  4. * this work for additional information regarding copyright ownership.
  5. * The ASF licenses this file to You under the Apache License, Version 2.0
  6. * (the "License"); you may not use this file except in compliance with
  7. * the License. You may obtain a copy of the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS,
  13. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. * See the License for the specific language governing permissions and
  15. * limitations under the License.
  16. */
  17. package java.sql;
  18. import java.util.Iterator;
  19. public class SQLException extends Exception implements Iterable<Throwable>
  20. {
  21. public SQLException() {}
  22. public SQLException(String reason) {}
  23. public SQLException(String reason, String SQLState) {}
  24. public SQLException(String reason, String SQLState, int vendorCode) {}
  25. public SQLException(String reason, String sqlState, int vendorCode, Throwable cause) {}
  26. public SQLException(String reason, String sqlState, Throwable cause) {}
  27. public SQLException(String reason, Throwable cause) {}
  28. public SQLException(Throwable cause) {}
  29. public int getErrorCode() { return 0; }
  30. public SQLException getNextException() { return null; }
  31. public String getSQLState() { return null; }
  32. public Iterator<Throwable> iterator() { return null; }
  33. public void setNextException(SQLException ex) { }
  34. }