Skip to content

Commit

Permalink
feat: add ParseException.MustBeIncludedIn
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucky3028 committed Aug 30, 2022
1 parent 844b9fc commit 50c86cb
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,7 @@ object ParseException extends Enum[ParseException] {
case object MustBeDateTimeUnit extends ParseException("It must be DateTimeUnit")

case object MustBeInterval extends ParseException("It must be Interval")

case class MustBeIncludedIn[*](keys: Iterable[*])
extends ParseException(s"It must be included in ${keys.mkString(", ")}")
}

0 comments on commit 50c86cb

Please sign in to comment.