handle error scenarios without throwing exceptions