You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Passing an invalid name to namesToValuesMap returns an unhelpful NoSuchElementException with no message to indicate what the invalid value was
> domain.DocType.namesToValuesMap("Greg")
java.util.NoSuchElementException
at scala.collection.immutable.BitmapIndexedMapNode.apply(HashMap.scala:569)
at scala.collection.immutable.HashMap.apply(HashMap.scala:132)
... 36 elided
Compare to withName which gives a much nicer message, but this doesn't help as enumeratum-slick uses namesToValuesMap, so you could optionally consider this as a bug in SlickEnumColumnSupport.
The text was updated successfully, but these errors were encountered:
Passing an invalid name to
namesToValuesMap
returns an unhelpful NoSuchElementException with no message to indicate what the invalid value wasCompare to
withName
which gives a much nicer message, but this doesn't help asenumeratum-slick
usesnamesToValuesMap
, so you could optionally consider this as a bug inSlickEnumColumnSupport
.The text was updated successfully, but these errors were encountered: