KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > activemq > ra > InvalidMessageEndpointException


1 /**
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one or more
4  * contributor license agreements. See the NOTICE file distributed with
5  * this work for additional information regarding copyright ownership.
6  * The ASF licenses this file to You under the Apache License, Version 2.0
7  * (the "License"); you may not use this file except in compliance with
8  * the License. You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */

18 package org.apache.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 JavaDoc {
27
28     private static final long serialVersionUID = -9007051892399939057L;
29
30     /**
31      * Constructs a new exception with <code>null</code> as its detail message.
32      * The cause is not initialized, and may subsequently be initialized by a
33      * call to {@link #initCause}.
34      */

35     public InvalidMessageEndpointException() {
36         super();
37     }
38
39     /**
40      * Constructs a new exception with the specified detail message. The
41      * cause is not initialized, and may subsequently be initialized by
42      * a call to {@link #initCause}.
43      *
44      * @param message the detail message. The detail message is saved for
45      * later retrieval by the {@link #getMessage()} method.
46      */

47     public InvalidMessageEndpointException(final String JavaDoc message) {
48         super(message);
49     }
50
51     /**
52      * Constructs a new exception with the specified detail message and
53      * cause. <p>Note that the detail message associated with
54      * <code>cause</code> is <i>not</i> automatically incorporated in
55      * this exception's detail message.
56      *
57      * @param message the detail message (which is saved for later retrieval
58      * by the {@link #getMessage()} method).
59      * @param cause the cause (which is saved for later retrieval by the
60      * {@link #getCause()} method). (A <tt>null</tt> value is
61      * permitted, and indicates that the cause is nonexistent or
62      * unknown.)
63      */

64     public InvalidMessageEndpointException(final String JavaDoc message, final Throwable JavaDoc cause) {
65         super(message, cause);
66     }
67
68     /**
69      * Constructs a new exception with the specified cause and a detail
70      * message of <tt>(cause==null ? null : cause.toString())</tt> (which
71      * typically contains the class and detail message of <tt>cause</tt>).
72      * This constructor is useful for exceptions that are little more than
73      * wrappers for other throwables (for example, {@link
74      * java.security.PrivilegedActionException}).
75      *
76      * @param cause the cause (which is saved for later retrieval by the
77      * {@link #getCause()} method). (A <tt>null</tt> value is
78      * permitted, and indicates that the cause is nonexistent or
79      * unknown.)
80      */

81     public InvalidMessageEndpointException(final Throwable JavaDoc cause) {
82         super(cause);
83     }
84 }
85
Popular Tags