Hello everyone, I'm looking for advice on implementation in kotlin-module.

The ObjectMapper.readValue may return null as a result.
On the other hand, in the kotlin-module extension, if the user calls 
readValue expecting non-null, an error should be thrown if the result is 
null(https://github.com/FasterXML/jackson-module-kotlin/issues/399).

I have learned how to achieve this, but am struggling with which exception 
should be thrown as a validation error.

1. NPE
2. some exception defined in Jackson (what would be appropriate?)
3. any proprietary exception in kotlin-module

Personally, I think 2 is better, but is there any appropriate exception?
Any advice would be appreciated.

-- 
You received this message because you are subscribed to the Google Groups 
"jackson-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jackson-dev+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/jackson-dev/1dbee532-1337-46f2-b81c-563503656aa8n%40googlegroups.com.

Reply via email to