Replace some generic Exceptions with specific ones

Replaced occurences of Exception with some specific exceptions

Change-Id: Ib6d71172ad607b0cdcc99147920dc6b032b5c34c
Merge "Replace some generic Exceptions with specific ones"