Source code: org/activemq/ra/InvalidMessageEndpointException.java
1 /**
2 *
3 * Copyright 2004 Michael Gaffney
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *
17 **/
18 package org.activemq.ra;
19
20 /**
21 * Thrown to indicate that a MessageEndpoint is no longer valid
22 * and should be discarded.
23 *
24 * @author <a href="mailto:michael.gaffney@panacya.com">Michael Gaffney </a>
25 */
26 public class InvalidMessageEndpointException extends RuntimeException {
27
28 /**
29 * Constructs a new exception with <code>null</code> as its detail message.
30 * The cause is not initialized, and may subsequently be initialized by a
31 * call to {@link #initCause}.
32 */
33 public InvalidMessageEndpointException() {
34 super();
35 }
36
37 /**
38 * Constructs a new exception with the specified detail message. The
39 * cause is not initialized, and may subsequently be initialized by
40 * a call to {@link #initCause}.
41 *
42 * @param message the detail message. The detail message is saved for
43 * later retrieval by the {@link #getMessage()} method.
44 */
45 public InvalidMessageEndpointException(final String message) {
46 super(message);
47 }
48
49 /**
50 * Constructs a new exception with the specified detail message and
51 * cause. <p>Note that the detail message associated with
52 * <code>cause</code> is <i>not</i> automatically incorporated in
53 * this exception's detail message.
54 *
55 * @param message the detail message (which is saved for later retrieval
56 * by the {@link #getMessage()} method).
57 * @param cause the cause (which is saved for later retrieval by the
58 * {@link #getCause()} method). (A <tt>null</tt> value is
59 * permitted, and indicates that the cause is nonexistent or
60 * unknown.)
61 */
62 public InvalidMessageEndpointException(final String message, final Throwable cause) {
63 super(message, cause);
64 }
65
66 /**
67 * Constructs a new exception with the specified cause and a detail
68 * message of <tt>(cause==null ? null : cause.toString())</tt> (which
69 * typically contains the class and detail message of <tt>cause</tt>).
70 * This constructor is useful for exceptions that are little more than
71 * wrappers for other throwables (for example, {@link
72 * java.security.PrivilegedActionException}).
73 *
74 * @param cause the cause (which is saved for later retrieval by the
75 * {@link #getCause()} method). (A <tt>null</tt> value is
76 * permitted, and indicates that the cause is nonexistent or
77 * unknown.)
78 */
79 public InvalidMessageEndpointException(final Throwable cause) {
80 super(cause);
81 }
82 }