error handling

try-catch