Package edu.harvard.hul.ois.jhove
Class ErrorMessage
- java.lang.Object
-
- edu.harvard.hul.ois.jhove.Message
-
- edu.harvard.hul.ois.jhove.ErrorMessage
-
public class ErrorMessage extends Message
This class encapsulates an error message from a Module, representing a problem in the content being analyzed.
-
-
Field Summary
-
Fields inherited from class edu.harvard.hul.ois.jhove.Message
_offset, _subMessage, message, NULL
-
-
Constructor Summary
Constructors Constructor Description ErrorMessage(JhoveMessage message)Creates an ErrorMessage with an identifier.ErrorMessage(JhoveMessage message, long offset)Creates an ErrorMessage with an identifier.ErrorMessage(JhoveMessage message, String subMessage)Creates an ErrorMessage with an identifier.ErrorMessage(JhoveMessage message, String subMessage, long offset)Creates an ErrorMessage with an identifier.ErrorMessage(String message)Creates an ErrorMessage.ErrorMessage(String message, long offset)Creates an ErrorMessage.ErrorMessage(String message, String subMessage)Creates an ErrorMessage.ErrorMessage(String message, String subMessage, long offset)Creates an ErrorMessage.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetPrefix()-
Methods inherited from class edu.harvard.hul.ois.jhove.Message
getId, getJhoveMessage, getMessage, getOffset, getSubMessage
-
-
-
-
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.
-
-