@Override public boolean isFatalException(int subtype, SQLException ex) { int errorCode = ex.getErrorCode(); if ((subtype == StoreException.LOCK || subtype == StoreException.QUERY) && errorCode <= 30000) { return false; } return super.isFatalException(subtype, ex); }
@Override public boolean isFatalException(int subtype, SQLException ex) { int errorCode = ex.getErrorCode(); if ((subtype == StoreException.LOCK || subtype == StoreException.QUERY) && errorCode <= 30000) { return false; } return super.isFatalException(subtype, ex); }
@Override public boolean isFatalException(int subtype, SQLException ex) { int errorCode = ex.getErrorCode(); if ((subtype == StoreException.LOCK || subtype == StoreException.QUERY) && errorCode <= 30000) { return false; } return super.isFatalException(subtype, ex); }
@Override public boolean isFatalException(int subtype, SQLException ex) { int errorCode = ex.getErrorCode(); if ((subtype == StoreException.LOCK || subtype == StoreException.QUERY) && errorCode <= 30000) { return false; } return super.isFatalException(subtype, ex); }
@Override public boolean isFatalException(int subtype, SQLException ex) { String errorState = ex.getSQLState(); int errorCode = ex.getErrorCode(); if (errorCode == -952 && "57014".equals(errorState)) return false; /* * Check if this Exception was generated by a lock timeout expiration. * The following criteria are used to determine this: * * DB2 LUW Infocenter: SQLSTATE=57033 with reason code "80" indicates * the statement failed due to timeout. DB2 for z/OS Stored Procedures: * Through the CALL and Beyond, page 188: An ErrorCode of -913 with * SQLERR 00C9008E means a timeout has occurred. */ if (subtype == StoreException.LOCK && "57033".equals(errorState) && ((ex.getMessage().indexOf("80") != -1) || (errorCode == -913 && ex.getMessage().contains("00C9008E")))) { return false; } if ((subtype == StoreException.QUERY && "57014".equals(errorState) && (errorCode == -952 || errorCode == -905))) { return false; } return super.isFatalException(subtype, ex); }
@Override public boolean isFatalException(int subtype, SQLException ex) { String errorState = ex.getSQLState(); int errorCode = ex.getErrorCode(); if (errorCode == -952 && "57014".equals(errorState)) return false; /* * Check if this Exception was generated by a lock timeout expiration. * The following criteria are used to determine this: * * DB2 LUW Infocenter: SQLSTATE=57033 with reason code "80" indicates * the statement failed due to timeout. DB2 for z/OS Stored Procedures: * Through the CALL and Beyond, page 188: An ErrorCode of -913 with * SQLERR 00C9008E means a timeout has occurred. */ if (subtype == StoreException.LOCK && "57033".equals(errorState) && ((ex.getMessage().indexOf("80") != -1) || (errorCode == -913 && ex.getMessage().contains("00C9008E")))) { return false; } if ((subtype == StoreException.QUERY && "57014".equals(errorState) && (errorCode == -952 || errorCode == -905))) { return false; } return super.isFatalException(subtype, ex); }
@Override public boolean isFatalException(int subtype, SQLException ex) { String errorState = ex.getSQLState(); int errorCode = ex.getErrorCode(); if (errorCode == -952 && "57014".equals(errorState)) return false; /* * Check if this Exception was generated by a lock timeout expiration. * The following criteria are used to determine this: * * DB2 LUW Infocenter: SQLSTATE=57033 with reason code "80" indicates * the statement failed due to timeout. DB2 for z/OS Stored Procedures: * Through the CALL and Beyond, page 188: An ErrorCode of -913 with * SQLERR 00C9008E means a timeout has occurred. */ if (subtype == StoreException.LOCK && "57033".equals(errorState) && ((ex.getMessage().indexOf("80") != -1) || (errorCode == -913 && ex.getMessage().contains("00C9008E")))) { return false; } if ((subtype == StoreException.QUERY && "57014".equals(errorState) && (errorCode == -952 || errorCode == -905))) { return false; } return super.isFatalException(subtype, ex); }
@Override public boolean isFatalException(int subtype, SQLException ex) { String errorState = ex.getSQLState(); int errorCode = ex.getErrorCode(); if (errorCode == -952 && "57014".equals(errorState)) return false; /* * Check if this Exception was generated by a lock timeout expiration. * The following criteria are used to determine this: * * DB2 LUW Infocenter: SQLSTATE=57033 with reason code "80" indicates * the statement failed due to timeout. DB2 for z/OS Stored Procedures: * Through the CALL and Beyond, page 188: An ErrorCode of -913 with * SQLERR 00C9008E means a timeout has occurred. */ if (subtype == StoreException.LOCK && "57033".equals(errorState) && ((ex.getMessage().indexOf("80") != -1) || (errorCode == -913 && ex.getMessage().contains("00C9008E")))) { return false; } if ((subtype == StoreException.QUERY && "57014".equals(errorState) && (errorCode == -952 || errorCode == -905))) { return false; } return super.isFatalException(subtype, ex); }