/jboss-as-7.1.1.Final/clustering/web-spi/src/main/java/org/jboss/as/clustering/web/impl/ClusteringWebMessages.java
Java | 74 lines | 15 code | 7 blank | 52 comment | 0 complexity | ec356c224cdd452c2cba71941e04952a MD5 | raw file
Possible License(s): LGPL-2.1, Apache-2.0
1/*
2 * JBoss, Home of Professional Open Source.
3 * Copyright 2011, Red Hat, Inc., and individual contributors
4 * as indicated by the @author tags. See the copyright.txt file in the
5 * distribution for a 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
23package org.jboss.as.clustering.web.impl;
24
25import org.jboss.logging.Cause;
26import org.jboss.logging.Message;
27import org.jboss.logging.MessageBundle;
28import org.jboss.logging.Messages;
29
30/**
31 * Date: 30.08.2011
32 *
33 * @author <a href="mailto:jperkins@redhat.com">James R. Perkins</a>
34 */
35@MessageBundle(projectCode = "JBAS")
36interface ClusteringWebMessages {
37
38 /**
39 * The messages.
40 */
41 ClusteringWebMessages MESSAGES = Messages.getBundle(ClusteringWebMessages.class);
42
43 /**
44 * Creates an exception indicating that an exception occurred while executing the method represented by the
45 * {@code methodName} parameter..
46 *
47 * @param cause the cause of the error.
48 * @param methodName the name of the method the error occurred in.
49 *
50 * @return a {@link RuntimeException} for the error.
51 */
52 @Message(id = 10310, value = "%s: Caught Exception ending batch: ")
53 RuntimeException caughtExceptionEndingBatch(@Cause Throwable cause, String methodName);
54
55 /**
56 * Creates an exception indicating the {@code Object} represented by the {@code value} parameter does not implement
57 * the interface represented by the {@code interfaceName} parameter.
58 *
59 * @param value the object that does not implement the interface.
60 * @param interfaceName the interface name that should be implemented.
61 *
62 * @return an {@link IllegalArgumentException} for the error.
63 */
64 @Message(id = 10311, value = "%s does not implement %s")
65 IllegalArgumentException interfaceNotImplemented(Object value, String interfaceName);
66
67 /**
68 * Creates an exception indicating the session is not configured to provide session attributes.
69 *
70 * @return an {@link IllegalStateException} for the error.
71 */
72 @Message(id = 10312, value = "Not configured to provide session attributes")
73 IllegalStateException sessionAttributesNotConfigured();
74}