Add recognition of another transient error type.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@134 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: MySQLRepository.java,v 1.4 2001/05/26 03:22:24 mdb Exp $
|
||||
// $Id: MySQLRepository.java,v 1.5 2001/05/30 03:18:32 mdb Exp $
|
||||
|
||||
package com.samskivert.jdbc;
|
||||
|
||||
@@ -68,6 +68,8 @@ public abstract class MySQLRepository extends Repository
|
||||
protected boolean isTransientException (SQLException sqe)
|
||||
{
|
||||
String msg = sqe.getMessage();
|
||||
return (msg != null && msg.indexOf("Lost connection") != -1);
|
||||
return (msg != null &&
|
||||
(msg.indexOf("Lost connection") != -1 ||
|
||||
msg.indexOf("Communication link failure") != -1));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user