Class SilverpeasExceptionMessages.LightExceptionMessage

  • Enclosing class:
    SilverpeasExceptionMessages

    public static class SilverpeasExceptionMessages.LightExceptionMessage
    extends Object
    In charge to produce lighter error messages but with a bit of contextualization.
    • Constructor Detail

      • LightExceptionMessage

        public LightExceptionMessage​(Object source,
                                     Exception exception)
      • LightExceptionMessage

        public LightExceptionMessage​(Class<?> source,
                                     Exception exception)
    • Method Detail

      • singleLineWith

        public String singleLineWith​(String message)
        Merges the given message with the context in order to produce an error on a single line.
        Parameters:
        message - a functional error message to merge with the context.
        Returns:
        a string representing the merged message.