X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Flogging%2Fbridge%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Flogging%2Fbridge%2Finternal%2FUncaughtExceptionPolicy.java;fp=opendaylight%2Flogging%2Fbridge%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Flogging%2Fbridge%2Finternal%2FUncaughtExceptionPolicy.java;h=0000000000000000000000000000000000000000;hp=0545578b7f9ff6cbcefd3d7a5b2410027c9b13ed;hb=42c32160bfd41de57189bb246fec5ffb48ed8e9e;hpb=edf5bfcee83c750853253ccfd991ba7000f5f65b diff --git a/opendaylight/logging/bridge/src/main/java/org/opendaylight/controller/logging/bridge/internal/UncaughtExceptionPolicy.java b/opendaylight/logging/bridge/src/main/java/org/opendaylight/controller/logging/bridge/internal/UncaughtExceptionPolicy.java deleted file mode 100644 index 0545578b7f..0000000000 --- a/opendaylight/logging/bridge/src/main/java/org/opendaylight/controller/logging/bridge/internal/UncaughtExceptionPolicy.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright (c) 2013 Cisco Systems, Inc. and others. 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 - */ -package org.opendaylight.controller.logging.bridge.internal; - -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -enum UncaughtExceptionPolicy implements Thread.UncaughtExceptionHandler { - ABORT { - public static final int EXIT_CODE = 1; - - @Override - public void uncaughtException(final Thread t, final Throwable e) { - log.error("Thread {} died because of an uncaught exception, forcing virtual machine shutdown", t, e); - System.exit(EXIT_CODE); - } - }, - IGNORE { - @Override - public void uncaughtException(final Thread t, final Throwable e) { - log.error("Thread {} died because of an uncaught exception", t, e); - } - }; - - private static final Logger log = LoggerFactory.getLogger(UncaughtExceptionPolicy.class); -}