[JDP-1] Fix narrowing issue
[JDP-2] Improve error message
Exception should be unchecked