singhania | handling error scenario