Package htsjdk.samtools
Class SAMValidationError
java.lang.Object
htsjdk.samtools.SAMValidationError
- All Implemented Interfaces:
Serializable
Class that encapsulates a validation error message as well as a type code so that
errors can be aggregated by type.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static enum
-
Field Summary
-
Constructor Summary
ConstructorDescriptionSAMValidationError
(SAMValidationError.Type type, String message, String readName) Construct a SAMValidationError with unknown record number.SAMValidationError
(SAMValidationError.Type type, String message, String readName, long recordNumber) Construct a SAMValidationError with possibly-known record number. -
Method Summary
Modifier and TypeMethodDescriptionmay be nulllong
1-based.getType()
void
setRecordNumber
(long recordNumber) void
toString()
-
Field Details
-
serialVersionUID
public static final long serialVersionUID- See Also:
-
-
Constructor Details
-
SAMValidationError
Construct a SAMValidationError with unknown record number.- Parameters:
type
-message
-readName
- May be null if readName is not known.
-
SAMValidationError
public SAMValidationError(SAMValidationError.Type type, String message, String readName, long recordNumber) Construct a SAMValidationError with possibly-known record number.- Parameters:
type
- The validation error typemessage
- The message explaining the problemreadName
- The read which is the cause of the violation. May be null if readName is not known.recordNumber
- Position of the record in the SAM file it has been read from. -1 if not known.
-
-
Method Details