X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics%2Fsrc%2Forg%2Fsimantics%2FUnhandledExceptionService.java;fp=bundles%2Forg.simantics%2Fsrc%2Forg%2Fsimantics%2FUnhandledExceptionService.java;h=d09485161ca8ce6701a251faa110b1b0aebf9023;hp=0000000000000000000000000000000000000000;hb=04bf1d8e31c85530bcd47d41051362533997134e;hpb=4c6e2a31144508a830489706ad4f80f338d0c3ae diff --git a/bundles/org.simantics/src/org/simantics/UnhandledExceptionService.java b/bundles/org.simantics/src/org/simantics/UnhandledExceptionService.java new file mode 100644 index 000000000..d09485161 --- /dev/null +++ b/bundles/org.simantics/src/org/simantics/UnhandledExceptionService.java @@ -0,0 +1,24 @@ +/******************************************************************************* + * Copyright (c) 2019 Association for Decentralized Information Management + * in Industry THTH ry. + * 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: + * Semantum Oy - initial API and implementation + *******************************************************************************/ +package org.simantics; + +import java.util.function.Consumer; + +/** + * @author Antti Villberg + */ +public interface UnhandledExceptionService { + + void registerHandler(Consumer handler); + void handle(Throwable t); + +}