FileDocCategorySizeDatePackage
SybaseExceptionSorter.javaAPI DocJBoss 4.2.11989Fri Jul 13 21:01:14 BST 2007org.jboss.resource.adapter.jdbc.vendor

SybaseExceptionSorter

public class SybaseExceptionSorter extends Object implements Serializable, org.jboss.resource.adapter.jdbc.ExceptionSorter
SybaseExceptionSorter.java Created: Wed May 12 11:46:23 2003
author
Corby Page
author
Andrey Demchenko
author
David Jencks

Fields Summary
static final long
serialVersionUID
Constructors Summary
Methods Summary
public booleanisExceptionFatal(java.sql.SQLException e)


      
   
      boolean result = false;

      String errorText = (e.getMessage()).toUpperCase();

      if ((errorText.indexOf("JZ0C0") > -1) || // ERR_CONNECTION_DEAD
            (errorText.indexOf("JZ0C1") > -1)) // ERR_IOE_KILLED_CONNECTION
      {
         result = true;
      }

      return result;