/*************************************** * * * JBoss: The OpenSource J2EE WebOS * * * * Distributable under LGPL license. * * See terms of license at gnu.org. * * * ***************************************/ package org.jboss.util; /** * Thrown to indicate that a Throwable was caught but was not expected. * This is typical when catching Throwables to handle and rethrow Exceptions * and Errors. * * @version $Revision: 1.1 $ * @author Jason Dillon */ public class UnexpectedThrowable extends NestedError { /** * Construct a UnexpectedThrowable with the specified * detail message. * * @param msg Detail message. */ public UnexpectedThrowable(final String msg) { super(msg); } /** * Construct a UnexpectedThrowable with the specified * detail message and nested Throwable. * * @param msg Detail message. * @param nested Nested Throwable. */ public UnexpectedThrowable(final String msg, final Throwable nested) { super(msg, nested); } /** * Construct a UnexpectedThrowable with the specified * nested Throwable. * * @param nested Nested Throwable. */ public UnexpectedThrowable(final Throwable nested) { super(nested); } /** * Construct a UnexpectedThrowable with no detail. */ public UnexpectedThrowable() { super(); } }