Issue161 add exception conversion

PR for issue #161 

Moved from PR [969](https://github.com/restlet/restlet-framework-java/pull/969). See this for history