PageRenderTime 44ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/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. package org.jboss.as.clustering.web.impl;
  23. import org.jboss.logging.Cause;
  24. import org.jboss.logging.Message;
  25. import org.jboss.logging.MessageBundle;
  26. import org.jboss.logging.Messages;
  27. /**
  28. * Date: 30.08.2011
  29. *
  30. * @author <a href="mailto:jperkins@redhat.com">James R. Perkins</a>
  31. */
  32. @MessageBundle(projectCode = "JBAS")
  33. interface ClusteringWebMessages {
  34. /**
  35. * The messages.
  36. */
  37. ClusteringWebMessages MESSAGES = Messages.getBundle(ClusteringWebMessages.class);
  38. /**
  39. * Creates an exception indicating that an exception occurred while executing the method represented by the
  40. * {@code methodName} parameter..
  41. *
  42. * @param cause the cause of the error.
  43. * @param methodName the name of the method the error occurred in.
  44. *
  45. * @return a {@link RuntimeException} for the error.
  46. */
  47. @Message(id = 10310, value = "%s: Caught Exception ending batch: ")
  48. RuntimeException caughtExceptionEndingBatch(@Cause Throwable cause, String methodName);
  49. /**
  50. * Creates an exception indicating the {@code Object} represented by the {@code value} parameter does not implement
  51. * the interface represented by the {@code interfaceName} parameter.
  52. *
  53. * @param value the object that does not implement the interface.
  54. * @param interfaceName the interface name that should be implemented.
  55. *
  56. * @return an {@link IllegalArgumentException} for the error.
  57. */
  58. @Message(id = 10311, value = "%s does not implement %s")
  59. IllegalArgumentException interfaceNotImplemented(Object value, String interfaceName);
  60. /**
  61. * Creates an exception indicating the session is not configured to provide session attributes.
  62. *
  63. * @return an {@link IllegalStateException} for the error.
  64. */
  65. @Message(id = 10312, value = "Not configured to provide session attributes")
  66. IllegalStateException sessionAttributesNotConfigured();
  67. }