[507] | 1 | package gov.hhs.fha.nhinc.subscription.repository;
|
---|
| 2 |
|
---|
| 3 | /**
|
---|
| 4 | * Base exception for the subscription repository.
|
---|
| 5 | *
|
---|
| 6 | * @author Neil Webb
|
---|
| 7 | */
|
---|
| 8 | public class SubscriptionRepositoryException extends Exception
|
---|
| 9 | {
|
---|
| 10 | private static final long serialVersionUID = -3262468903311147518L;
|
---|
| 11 |
|
---|
| 12 | /**
|
---|
| 13 | * Constructs a new exception with <code>null</code> as its detail message.
|
---|
| 14 | * The cause is not initialized, and may subsequently be initialized by a
|
---|
| 15 | * call to {@link #initCause}.
|
---|
| 16 | */
|
---|
| 17 | public SubscriptionRepositoryException()
|
---|
| 18 | {
|
---|
| 19 | super();
|
---|
| 20 | }
|
---|
| 21 |
|
---|
| 22 | /**
|
---|
| 23 | * Constructs a new exception with the specified detail message. The
|
---|
| 24 | * cause is not initialized, and may subsequently be initialized by
|
---|
| 25 | * a call to {@link #initCause}.
|
---|
| 26 | *
|
---|
| 27 | * @param message the detail message. The detail message is saved for
|
---|
| 28 | * later retrieval by the {@link #getMessage()} method.
|
---|
| 29 | */
|
---|
| 30 | public SubscriptionRepositoryException(String message)
|
---|
| 31 | {
|
---|
| 32 | super(message);
|
---|
| 33 | }
|
---|
| 34 |
|
---|
| 35 | /**
|
---|
| 36 | * Constructs a new exception with the specified detail message and
|
---|
| 37 | * cause. <p>Note that the detail message associated with
|
---|
| 38 | * <code>cause</code> is <i>not</i> automatically incorporated in
|
---|
| 39 | * this exception's detail message.
|
---|
| 40 | *
|
---|
| 41 | * @param message the detail message (which is saved for later retrieval
|
---|
| 42 | * by the {@link #getMessage()} method).
|
---|
| 43 | * @param cause the cause (which is saved for later retrieval by the
|
---|
| 44 | * {@link #getCause()} method). (A <tt>null</tt> value is
|
---|
| 45 | * permitted, and indicates that the cause is nonexistent or
|
---|
| 46 | * unknown.)
|
---|
| 47 | */
|
---|
| 48 | public SubscriptionRepositoryException(String message, Throwable cause)
|
---|
| 49 | {
|
---|
| 50 | super(message, cause);
|
---|
| 51 | }
|
---|
| 52 |
|
---|
| 53 | /**
|
---|
| 54 | * Constructs a new exception with the specified cause and a detail
|
---|
| 55 | * message of <tt>(cause==null ? null : cause.toString())</tt> (which
|
---|
| 56 | * typically contains the class and detail message of <tt>cause</tt>).
|
---|
| 57 | * This constructor is useful for exceptions that are little more than
|
---|
| 58 | * wrappers for other throwables (for example, {@link
|
---|
| 59 | * java.security.PrivilegedActionException}).
|
---|
| 60 | *
|
---|
| 61 | * @param cause the cause (which is saved for later retrieval by the
|
---|
| 62 | * {@link #getCause()} method). (A <tt>null</tt> value is
|
---|
| 63 | * permitted, and indicates that the cause is nonexistent or
|
---|
| 64 | * unknown.)
|
---|
| 65 | */
|
---|
| 66 | public SubscriptionRepositoryException(Throwable cause)
|
---|
| 67 | {
|
---|
| 68 | super(cause);
|
---|
| 69 | }
|
---|
| 70 | }
|
---|