1 21 22 package org.apache.derby.client.am; 23 24 import java.sql.SQLException ; 25 import org.apache.derby.shared.common.reference.SQLState; 26 27 30 31 public class SQLExceptionFactory { 32 33 public static SQLException notImplemented (String feature) { 34 SqlException sqlException = new SqlException (null, 35 new ClientMessageId (SQLState.NOT_IMPLEMENTED), feature); 36 return sqlException.getSQLException(); 37 } 38 39 44 public SQLException getSQLException (String message, String sqlState, 45 int errCode) { 46 return new SQLException (message, sqlState, errCode); 47 } 48 } 49 50 | Popular Tags |