1 22 package org.jboss.resource.adapter.jdbc.vendor; 23 24 import java.io.Serializable ; 25 import java.sql.SQLException ; 26 import org.jboss.resource.adapter.jdbc.ExceptionSorter; 27 28 29 38 public class InformixExceptionSorter implements ExceptionSorter, Serializable 39 { 40 static final long serialVersionUID = -7135889081050258852L; 41 42 public boolean isExceptionFatal(SQLException e) 43 { 44 switch (e.getErrorCode()) 45 { 46 case -79716: case -79730: case -79734: case -79735: case -79736: case -79756: case -79757: case -79758: case -79759: case -79760: case -79788: case -79811: case -79812: case -79836: case -79837: case -79879: 63 return true; 64 } 65 66 return false; 67 } 68 69 } | Popular Tags |