Entity exception codes into Exception