/** * Return true if the given exception occurred as a result of a lock * time out exception (WAIT clause). */ @Override public boolean isLockTimeoutException(DatabaseException e) { return (e.getInternalException() instanceof java.sql.SQLException && ((java.sql.SQLException) e.getInternalException()).getErrorCode() == 30006); }
/** * Return true if the given exception occurred as a result of a lock * time out exception (WAIT clause). */ @Override public boolean isLockTimeoutException(DatabaseException e) { return (e.getInternalException() instanceof java.sql.SQLException && ((java.sql.SQLException) e.getInternalException()).getErrorCode() == 30006); }
/** * Return true if the given exception occurred as a result of a lock * time out exception (WAIT clause). */ @Override public boolean isLockTimeoutException(DatabaseException e) { return (e.getInternalException() instanceof java.sql.SQLException && ((java.sql.SQLException) e.getInternalException()).getErrorCode() == 30006); }
/** * PUBLIC: * This is the database error number. * Since it is possible to have no internal exception the errorCode will be zero in this case. */ public int getDatabaseErrorCode() { if (getInternalException() == null) { return super.getErrorCode(); } return ((SQLException)getInternalException()).getErrorCode(); }
/** * PUBLIC: * This is the database error number. * Since it is possible to have no internal exception the errorCode will be zero in this case. */ public int getDatabaseErrorCode() { if (getInternalException() == null) { return super.getErrorCode(); } return ((SQLException)getInternalException()).getErrorCode(); }
/** * PUBLIC: * This is the database error number. * Since it is possible to have no internal exception the errorCode will be zero in this case. */ public int getDatabaseErrorCode() { if (getInternalException() == null) { return super.getErrorCode(); } return ((SQLException)getInternalException()).getErrorCode(); }
String message = cve.getInternalException().getMessage(); String[] parts = message.split("'"); String constraintName = parts[parts.length - 1]; String message = cve.getInternalException().getMessage(); String[] parts = message.split("'"); String columnName = null;
String message = cve.getInternalException().getMessage(); String[] parts = message.split("'"); String constraintName = parts[parts.length - 1]; String message = cve.getInternalException().getMessage(); String[] parts = message.split("'"); String columnName = null;
if (getInternalException() == null) { return super.getMessage(); } else { writer.write(getIndentationString()); writer.write(ExceptionMessageGenerator.getHeader("ErrorCodeHeader")); if (getInternalException() instanceof SQLException) { writer.write(Integer.toString(((SQLException)getInternalException()).getErrorCode())); } else { writer.write("000");
if (getInternalException() == null) { return super.getMessage(); } else { writer.write(getIndentationString()); writer.write(ExceptionMessageGenerator.getHeader("ErrorCodeHeader")); if (getInternalException() instanceof SQLException) { writer.write(Integer.toString(((SQLException)getInternalException()).getErrorCode())); } else { writer.write("000");
if (getInternalException() == null) { return super.getMessage(); } else { writer.write(getIndentationString()); writer.write(ExceptionMessageGenerator.getHeader("ErrorCodeHeader")); if (getInternalException() instanceof SQLException) { writer.write(Integer.toString(((SQLException)getInternalException()).getErrorCode())); } else { writer.write("000");