1 /* 2 * Copyright (C) 2013 4th Line GmbH, Switzerland 3 * 4 * The contents of this file are subject to the terms of either the GNU 5 * Lesser General Public License Version 2 or later ("LGPL") or the 6 * Common Development and Distribution License Version 1 or later 7 * ("CDDL") (collectively, the "License"). You may not use this file 8 * except in compliance with the License. See LICENSE.txt for more 9 * information. 10 * 11 * This program is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14 */ 15 package org.fourthline.cling.transport; 16 17 /** 18 * Thrown by the {@link Router} if a non-fatal recoverable exception occurred. 19 * <p> 20 * This exception is thrown if the calling thread wasn't able to obtain 21 * exclusive read/write access on the router. 22 * </p> 23 * <p> 24 * This exception is also thrown when you interrupt the thread calling the 25 * router. In such a case, the cause of this is an <code>InterruptedException</code>. 26 * </p> 27 * 28 * @author Christian Bauer 29 */ 30 public class RouterException extends Exception { 31 32 public RouterException() { 33 super(); 34 } 35 36 public RouterException(String s) { 37 super(s); 38 } 39 40 public RouterException(String s, Throwable throwable) { 41 super(s, throwable); 42 } 43 44 public RouterException(Throwable throwable) { 45 super(throwable); 46 } 47 }