Briefle words · Code & architecture
Swallowed exception
An error that code catches and then silently ignores, so the failure goes unnoticed and becomes hard to trace.
Say it to an AI
TypeScript async syncAccount(accountId) that fetches bank transactions and upserts them. No swallowed exceptions: in the catch, use structured logging with the accountId, set the account's syncStatus to 'failed' so the UI can show it, then rethrow the original error so the job runner can retry and alert. On success set syncStatus back to 'ok'.
How an expert would brief the stronger version of “Bank account sync”.
See it
Try it as a puzzle →A pull request with the job that pulls new transactions from a user's bank into a budgeting app.
Why: B's catch block logs a warning that leaves out 'err' and never rethrows, so every problem, from a network blip to a revoked bank login, vanishes there.
Related words
Room 1 · Essentials
Learn “Swallowed exception” in a five-minute lesson