KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > mq > DestinationFullException


1 /*
2 * JBoss, Home of Professional Open Source
3 * Copyright 2005, JBoss Inc., and individual contributors as indicated
4 * by the @authors tag. See the copyright.txt in the distribution for a
5 * full listing of individual contributors.
6 *
7 * This is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU Lesser General Public License as
9 * published by the Free Software Foundation; either version 2.1 of
10 * the License, or (at your option) any later version.
11 *
12 * This software is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this software; if not, write to the Free
19 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
21 */

22 package org.jboss.mq;
23
24 /**
25  * Thrown when a message cannot be added to a queue or a subscription
26  * because it is full.
27  *
28  * @author <a HREF="mailto:adrian@jboss.org">Adrian Brock</a>
29  * @version <tt>$Revision: 37459 $</tt>
30  */

31 public class DestinationFullException
32    extends SpyJMSException
33 {
34    // Constants -----------------------------------------------------
35

36    /** The serialVersionUID */
37    private static final long serialVersionUID = -2818359593624770353L;
38    
39    // Attributes ----------------------------------------------------
40

41    /** The text of the message before the nested mangles it */
42    protected String JavaDoc text;
43    
44    // Static --------------------------------------------------------
45

46    // Constructors --------------------------------------------------
47

48    /**
49     * Create a new DestinationFullException
50     *
51     * @param msg the message text
52     */

53    public DestinationFullException(final String JavaDoc msg)
54    {
55       super(msg);
56       this.text = msg;
57    }
58    
59    // Public --------------------------------------------------------
60

61    /**
62     * Get the message text
63     *
64     * @return the text
65     */

66    public String JavaDoc getText()
67    {
68       return text;
69    }
70    
71    // Package protected ---------------------------------------------
72

73    // Protected -----------------------------------------------------
74

75    // Private -------------------------------------------------------
76

77    // Inner classes -------------------------------------------------
78
}
79
Popular Tags