
org.umlg.runtime.adaptor.UmlgDefaultDbExceptionUtilImpl Maven / Gradle / Ivy
The newest version!
package org.umlg.runtime.adaptor;
/**
* Date: 2013/09/17
* Time: 7:35 AM
*/
public class UmlgDefaultDbExceptionUtilImpl implements UmlgExceptionUtil {
private static UmlgExceptionUtil INSTANCE = new UmlgDefaultDbExceptionUtilImpl();
private UmlgDefaultDbExceptionUtilImpl() {
super();
}
public static UmlgExceptionUtil getInstance() {
return INSTANCE;
}
@Override
public RuntimeException handle(Exception e) {
if (e instanceof RuntimeException) {
return (RuntimeException) e;
} else {
return new RuntimeException(e);
}
}
@Override
public boolean isNodeNotFoundException(Exception e) {
if (e instanceof RuntimeException) {
throw (RuntimeException)e;
} else {
throw new RuntimeException(e);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy