001 package com.sptci.rwt;
002
003 /**
004 * A custom exception that is used to wrap any exceptions raised when
005 * fetching {@link java.sql.Connection}s.
006 *
007 * <p>© Copyright 2007 <a href='http://sptci.com/' target='_new'>Sans Pareil Technologies, Inc.</a></p>
008 * @author Rakesh Vidyadharan 2007-09-24
009 * @version $Id: ConnectionException.java 4123 2008-05-25 21:49:01Z rakesh $
010 */
011 public class ConnectionException extends RuntimeException
012 {
013 /**
014 * Default constructor. Cannot be instantiated.
015 */
016 protected ConnectionException() {}
017
018 /**
019 * Create a new exception with the specified message.
020 *
021 * @param message The message that describes the problem.
022 */
023 public ConnectionException( final String message )
024 {
025 super( message );
026 }
027
028 /**
029 * Create a new exception with the instance of {@link Throwable} that
030 * caused the problem.
031 *
032 * @param cause The exception that caused this instance of the
033 * exception to be thrown.
034 */
035 public ConnectionException( final Throwable cause )
036 {
037 super( cause );
038 }
039
040 /**
041 * Create a new exception with the specified message and instance of
042 * {@link Throwable} caused the problem.
043 *
044 * @param message The message that describes the problem.
045 * @param cause The exception that caused this instance of the
046 * exception to be thrown.
047 */
048 public ConnectionException( final String message, final Throwable cause )
049 {
050 super( message, cause );
051 }
052 }