added crate exception translator in template. changed method signatures
and re factored implementation accordingly.