converting it to Generic Exception