Coverage Report - com.allanbank.mongodb.error.CannotConnectException
 
Classes in this File Line Coverage Branch Coverage Complexity
CannotConnectException
100%
8/8
N/A
1
 
 1  
 /*
 2  
  * #%L
 3  
  * CannotConnectException.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  
  * CannotConnectException is thrown to report a failure when attempting to
 26  
  * connect to MongoDB.
 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 CannotConnectException extends MongoDbException {
 35  
 
 36  
     /** Serialization exception for the class. */
 37  
     private static final long serialVersionUID = 1729264905521755667L;
 38  
 
 39  
     /**
 40  
      * Creates a new CannotConnectException.
 41  
      */
 42  
     public CannotConnectException() {
 43  1
         super();
 44  1
     }
 45  
 
 46  
     /**
 47  
      * Creates a new CannotConnectException.
 48  
      * 
 49  
      * @param message
 50  
      *            Message for the exception.
 51  
      */
 52  
     public CannotConnectException(final String message) {
 53  8
         super(message);
 54  8
     }
 55  
 
 56  
     /**
 57  
      * Creates a new CannotConnectException.
 58  
      * 
 59  
      * @param message
 60  
      *            Message for the exception.
 61  
      * @param cause
 62  
      *            The cause of the error.
 63  
      */
 64  
     public CannotConnectException(final String message, final Throwable cause) {
 65  1
         super(message, cause);
 66  1
     }
 67  
 
 68  
     /**
 69  
      * Creates a new CannotConnectException.
 70  
      * 
 71  
      * @param cause
 72  
      *            The cause of the error.
 73  
      */
 74  
     public CannotConnectException(final Throwable cause) {
 75  1
         super(cause);
 76  1
     }
 77  
 }