All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.umlg.runtime.adaptor.SqlgExceptionUtilIml Maven / Gradle / Ivy

The newest version!
package org.umlg.runtime.adaptor;

/**
 * Date: 2013/02/08
 * Time: 8:36 PM
 */
public class SqlgExceptionUtilIml implements UmlgExceptionUtil {

    private static SqlgExceptionUtilIml INSTANCE = new SqlgExceptionUtilIml();

    private SqlgExceptionUtilIml() {
        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) {
        return false;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy