Created template for mapping exceptions
Created exception hierarchy