Code example for SQLException

Methods: getSQLState

0
	 * (non-Javadoc) 
	 *  
	 * @see org.jboss.resource.adapter.jdbc.ExceptionSorter#isExceptionFatal(java.sql.SQLException) 
	 */ 
	public boolean isExceptionFatal(SQLException ex) { 
		String sqlState = ex.getSQLState(); 
 
		if (sqlState != null && sqlState.startsWith("08")) { 
			return true; 
		} 
 
		return super.isExceptionFatal(ex); 
	} 
 
} 
Experience pair programming with AI  Get Codota for Java