LSN Interview Question

Write code how do you handle errors.