Changed variable name as per the coding convention

Signed-off-by: Deepak Jha <deepak.jha@turn.com>
Added exception message

Signed-off-by: Deepak Jha <deepak.jha@turn.com>