HRCPP-150 Always catch exceptions as const

https://issues.jboss.org/browse/HRCPP-150