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

/server/websocket/src/main/java/org/infinispan/server/websocket/logging/Log.java

http://github.com/infinispan/infinispan
Java | 43 lines | 24 code | 12 blank | 7 comment | 0 complexity | 784bfe086177f1e7599c7e55577d7416 MD5 | raw file
Possible License(s): Apache-2.0, LGPL-2.1
  1. package org.infinispan.server.websocket.logging;
  2. import org.infinispan.server.websocket.json.JsonConversionException;
  3. import org.jboss.logging.annotations.Cause;
  4. import org.jboss.logging.annotations.Message;
  5. import org.jboss.logging.annotations.MessageLogger;
  6. /**
  7. * Log abstraction for the websocket server. For this module, message ids
  8. * ranging from 13001 to 14000 inclusively have been reserved.
  9. *
  10. * @author Galder ZamarreĂąo
  11. * @since 5.0
  12. */
  13. @MessageLogger(projectCode = "ISPN")
  14. public interface Log extends org.infinispan.util.logging.Log {
  15. @Message(value = "Could not convert from String to Json: %s", id = 13001)
  16. JsonConversionException unableToConvertFromStringToJson(String json, @Cause Throwable e);
  17. @Message(value = "Could not convert from Object to Json: %s", id = 13002)
  18. JsonConversionException unableToConvertFromObjectToJson(Object o, @Cause Throwable e);
  19. @Message(value = "Error while converting from Json to String", id = 13003)
  20. IllegalStateException unableToConvertFromJsonToString(@Cause Throwable t);
  21. @Message(value = "Unexpected exception while closing Websockets script stream.", id = 13004)
  22. IllegalStateException unableToCloseWebSocketsStream(@Cause Throwable t);
  23. @Message(value = "Unexpected exception while sending Websockets script to client.", id = 13005)
  24. IllegalStateException unableToSendWebSocketsScriptToTheClient(@Cause Throwable t);
  25. @Message(value = "Complex object graphs not yet supported!! Cannot cache value: %s", id = 13006)
  26. UnsupportedOperationException complexGraphObjectAreNotYetSupported(String json);
  27. @Message(value = "null '%s' arg in method or constructor call.", id = 13007)
  28. IllegalArgumentException invalidNullArgument(String fieldName);
  29. @Message(value = "Could not get fields from object", id = 13008)
  30. IllegalStateException unableToGetFieldsFromObject(@Cause Throwable t);
  31. }