blob: eae68646af297a2d72ae7a5692601a782401d829 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2004, 2007 Boeing.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Boeing - initial API and implementation
*******************************************************************************/
package org.eclipse.osee.define.errorhandler;
public class SqlResolver implements Resolver {
public SqlResolver() {
super();
}
public boolean resolve(Exception ex, StateValue value) {
if (ex.getMessage().contains("connection")) {
value.andSaveValid(false);
return true;
}
return false;
}
@Override
public boolean equals(Object obj) {
return this.getClass().getCanonicalName().equals(obj.getClass().getCanonicalName());
}
@Override
public int hashCode() {
return this.getClass().getCanonicalName().hashCode();
}
}