Skip to content

Conversation

joonkang-git
Copy link

Refactored exception handling to be more consistent, resolving issue #2401.
IllegalArgumentException for issues arising from input-related issues.
IllegalStateException for issues arising from internal logic issues.
UnsupportedOperationException for cases when a called method is not meant for use.

Copy link
Member

@heuermh heuermh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thank you for your contribution!

@heuermh heuermh added this to the 1.0.2 milestone Aug 13, 2024
@heuermh
Copy link
Member

heuermh commented Aug 13, 2024

Fixes #2401

@heuermh
Copy link
Member

heuermh commented Aug 13, 2024

Looks like one or more unit tests also need updating

- CIGAR/MD tag mismatch should cause errors *** FAILED ***
  Expected exception scala.MatchError to be thrown, but java.lang.UnsupportedOperationException
was thrown (MdTagSuite.scala:628)
  org.scalatest.exceptions.TestFailedException: ...

@joonkang-git
Copy link
Author

Hi, will work through editing the unit test thank you for your response!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants