1 /* 2 Copyright 2011-2014 AGH-UST, http://www.agh.edu.pl 3 Faculty of Computer Science, Electronics and Telecommunications 4 Department of Computer Science 5 6 See the NOTICE file distributed with this work for additional 7 information regarding copyright ownership 8 9 Licensed under the Apache License, Version 2.0 (the "License"); 10 you may not use this file except in compliance with the License. 11 You may obtain a copy of the License at 12 13 http://www.apache.org/licenses/LICENSE-2.0 14 15 Unless required by applicable law or agreed to in writing, software 16 distributed under the License is distributed on an "AS IS" BASIS, 17 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 See the License for the specific language governing permissions and 19 limitations under the License. 20 */ 21 package org.universAAL.ri.gateway.communicator.service; 22 23 /** 24 * Exception for unexpected behavior during communication with remote 25 * communicators the response message (like connection failure, 26 * (de)serialization failure). 27 * 28 * @author skallz 29 */ 30 public class CommunicationException extends RuntimeException { 31 32 /** 33 * 34 */ 35 private static final long serialVersionUID = -7480117622944127235L; 36 37 /** 38 * @see CommunicationException(Exception ex); 39 * @param ex 40 * the cause 41 */ 42 public CommunicationException(final Exception ex) { 43 super(ex); 44 } 45 46 /** 47 * @see CommunicationException(String msg); 48 * @param msg 49 * the message 50 */ 51 public CommunicationException(final String msg) { 52 super(msg); 53 } 54 55 }