Full threadmacpete42·catch them at the source and return sealed classes (used like sum types) insteadView on HN