Class ErrorMessage


  • public class ErrorMessage
    extends Message
    This class encapsulates an error message from a Module, representing a problem in the content being analyzed.
    • Constructor Detail

      • ErrorMessage

        public ErrorMessage​(String message)
        Creates an ErrorMessage.
        Parameters:
        message - Human-readable message describing the problem.
      • ErrorMessage

        public ErrorMessage​(JhoveMessage message)
        Creates an ErrorMessage with an identifier.
        Parameters:
        message - The message text and its identifier.
      • ErrorMessage

        public ErrorMessage​(String message,
                            long offset)
        Creates an ErrorMessage.
        Parameters:
        message - Human-readable message describing the problem.
        offset - The offset in the file at which the problem was detected.
      • ErrorMessage

        public ErrorMessage​(JhoveMessage message,
                            long offset)
        Creates an ErrorMessage with an identifier.
        Parameters:
        message - The message text and its identifier.
        offset - The offset in the file at which the problem was detected.
      • ErrorMessage

        public ErrorMessage​(String message,
                            String subMessage)
        Creates an ErrorMessage.
        Parameters:
        message - Human-readable message describing the problem.
        subMessage - Human-readable additional information.
      • ErrorMessage

        public ErrorMessage​(JhoveMessage message,
                            String subMessage)
        Creates an ErrorMessage with an identifier.
        Parameters:
        message - The message text and its identifier.
        subMessage - Human-readable additional information.
      • ErrorMessage

        public ErrorMessage​(String message,
                            String subMessage,
                            long offset)
        Creates an ErrorMessage.
        Parameters:
        message - Human-readable message describing the problem.
        subMessage - Human-readable additional information.
        offset - The offset in the file at which the problem was detected.
      • ErrorMessage

        public ErrorMessage​(JhoveMessage message,
                            String subMessage,
                            long offset)
        Creates an ErrorMessage with an identifier.
        Parameters:
        message - The message text and its identifier.
        subMessage - Human-readable additional information.
        offset - The offset in the file at which the problem was detected.