TypeScript class error handling - Effect Community