Coverage Report - com.allanbank.mongodb.error.ConnectionLostException
 
Classes in this File Line Coverage Branch Coverage Complexity
ConnectionLostException
100%
8/8
N/A
1
 
 1  
 /*
 2  
  * #%L
 3  
  * ConnectionLostException.java - mongodb-async-driver - Allanbank Consulting, Inc.
 4  
  * %%
 5  
  * Copyright (C) 2011 - 2014 Allanbank Consulting, Inc.
 6  
  * %%
 7  
  * Licensed under the Apache License, Version 2.0 (the "License");
 8  
  * you may not use this file except in compliance with the License.
 9  
  * You may obtain a copy of the License at
 10  
  * 
 11  
  *      http://www.apache.org/licenses/LICENSE-2.0
 12  
  * 
 13  
  * Unless required by applicable law or agreed to in writing, software
 14  
  * distributed under the License is distributed on an "AS IS" BASIS,
 15  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 16  
  * See the License for the specific language governing permissions and
 17  
  * limitations under the License.
 18  
  * #L%
 19  
  */
 20  
 package com.allanbank.mongodb.error;
 21  
 
 22  
 import com.allanbank.mongodb.MongoDbException;
 23  
 
 24  
 /**
 25  
  * ConnectionLostException provides a exception thrown when the connection to
 26  
  * the MongoDB server is lost.
 27  
  * 
 28  
  * @api.yes This class is part of the driver's API. Public and protected members
 29  
  *          will be deprecated for at least 1 non-bugfix release (version
 30  
  *          numbers are <major>.<minor>.<bugfix>) before being
 31  
  *          removed or modified.
 32  
  * @copyright 2012-2013, Allanbank Consulting, Inc., All Rights Reserved
 33  
  */
 34  
 public class ConnectionLostException extends MongoDbException {
 35  
 
 36  
     /** Serialization version for the class. */
 37  
     private static final long serialVersionUID = -1905095594463181344L;
 38  
 
 39  
     /**
 40  
      * Creates a new ConnectionLostException.
 41  
      */
 42  
     public ConnectionLostException() {
 43  1
         super();
 44  1
     }
 45  
 
 46  
     /**
 47  
      * Creates a new ConnectionLostException.
 48  
      * 
 49  
      * @param message
 50  
      *            Reason for the exception.
 51  
      */
 52  
     public ConnectionLostException(final String message) {
 53  10
         super(message);
 54  10
     }
 55  
 
 56  
     /**
 57  
      * Creates a new ConnectionLostException.
 58  
      * 
 59  
      * @param message
 60  
      *            Reason for the exception.
 61  
      * @param cause
 62  
      *            The exception causing the {@link ConnectionLostException}.
 63  
      */
 64  
     public ConnectionLostException(final String message, final Throwable cause) {
 65  1
         super(message, cause);
 66  1
     }
 67  
 
 68  
     /**
 69  
      * Creates a new ConnectionLostException.
 70  
      * 
 71  
      * @param cause
 72  
      *            The exception causing the {@link ConnectionLostException}.
 73  
      */
 74  
     public ConnectionLostException(final Throwable cause) {
 75  161
         super(cause);
 76  161
     }
 77  
 
 78  
 }