001/**
002 * Copyright (c) 2014-2015 Digi International Inc.,
003 * All rights not expressly granted are reserved.
004 *
005 * This Source Code Form is subject to the terms of the Mozilla Public
006 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
007 * You can obtain one at http://mozilla.org/MPL/2.0/.
008 *
009 * Digi International Inc. 11001 Bren Road East, Minnetonka, MN 55343
010 * =======================================================================
011 */
012package com.digi.xbee.api.exceptions;
013
014/**
015 * This exception will be thrown when any problem related to the communication
016 * with the XBee device occurs.
017 * 
018 * @see XBeeException
019 */
020public class CommunicationException extends XBeeException {
021
022        // Constants
023        private static final long serialVersionUID = 1L;
024
025        /**
026         * Creates a {@code CommunicationException} with {@code null} as its error 
027         * detail message.
028         */
029        public CommunicationException() {
030                super();
031        }
032        
033        /**
034         * Creates a {@code CommunicationException} with the specified cause.
035         * 
036         * @param cause The cause of this exception.
037         * 
038         * @see Throwable
039         */
040        public CommunicationException(Throwable cause) {
041                super(cause);
042        }
043
044        /**
045         * Creates a {@code CommunicationException} with the specified message.
046         * 
047         * @param message The associated message.
048         */
049        public CommunicationException(String message) {
050                super(message);
051        }
052
053        /**
054         * Creates a {@code CommunicationException} with the specified message and 
055         * cause.
056         * 
057         * @param message The associated message.
058         * @param cause The cause of this exception.
059         * 
060         * @see Throwable
061         */
062        public CommunicationException(String message, Throwable cause) {
063                super(message, cause);
064        }
065}