/* * Copyright (c) 2007, 2009, 2011, 2012 Eike Stepper (Berlin, Germany) 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 * * Contributors: * Eike Stepper - initial API and implementation */ package org.eclipse.net4j.util.concurrent; import java.util.concurrent.TimeoutException; /** * @author Eike Stepper */ public class TimeoutRuntimeException extends RuntimeException { private static final long serialVersionUID = 1L; public TimeoutRuntimeException() { } public TimeoutRuntimeException(String message) { super(message); } public TimeoutRuntimeException(Throwable cause) { super(cause); } public TimeoutRuntimeException(String message, Throwable cause) { super(message, cause); } /** * @since 3.0 */ public TimeoutException createTimeoutException() { TimeoutException timeoutException = new TimeoutException(getMessage()); timeoutException.initCause(this); return timeoutException; } }