Skip to content

Commit

Permalink
[Adam - 2401] Refactoring Error Messages
Browse files Browse the repository at this point in the history
  • Loading branch information
joonkang-git committed Aug 10, 2024
1 parent 79dd1d4 commit 0b07edf
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@ object MdTag {

case (CigarOperator.INSERTION | CigarOperator.H | CigarOperator.S | CigarOperator.P, _) =>
cigarIdx += 1

case _ =>
throw new UnsupportedOperationException(s"Unsupported CigarOperator: ${cigarElement.getOperator}")
}
}
new MdTag(referenceStart, matches, mismatches, deletions)
Expand Down Expand Up @@ -245,7 +248,7 @@ object MdTag {
readPos += cigarElement.getLength
}
if (cigarElement.getOperator.consumesReferenceBases) {
throw new IllegalArgumentException("Cannot handle operator: " + cigarElement.getOperator)
throw new UnsupportedOperationException("Cannot handle operator: " + cigarElement.getOperator)
}
}
}
Expand Down Expand Up @@ -339,7 +342,7 @@ object MdTag {
readPos += cigarElement.getLength
}
if (cigarElement.getOperator.consumesReferenceBases) {
throw new IllegalArgumentException("Cannot handle operator: " + cigarElement.getOperator)
throw new UnsupportedOperationException("Cannot handle operator: " + cigarElement.getOperator)
}
}
}
Expand Down Expand Up @@ -511,7 +514,7 @@ case class MdTag(
readPos += insLength
}
if (cigarElement.getOperator.consumesReferenceBases) {
throw new IllegalArgumentException("Cannot handle operator: " + cigarElement.getOperator)
throw new UnsupportedOperationException("Cannot handle operator: " + cigarElement.getOperator)
}
}
}
Expand Down

0 comments on commit 0b07edf

Please sign in to comment.