Class ErrorMessage

java.lang.Object
edu.harvard.hul.ois.jhove.Message
edu.harvard.hul.ois.jhove.ErrorMessage

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

    • ErrorMessage

      public ErrorMessage(JhoveMessage message)
      Creates an ErrorMessage with an identifier.
      Parameters:
      message - The message text and its identifier.
    • 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(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(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.