I'd move this exception also out of here for readability.