Briefle
LearnGlossaryPricing

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.

Study A · the stronger one
Study B · the weaker one

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

  • Identifier
  • Intention-revealing name
  • Guard clause
  • Happy path
  • Structured logging
  • Conventional Commits
  • Atomic commit
  • Magic number

Room 1 · Essentials

Learn “Swallowed exception” in a five-minute lesson

Start free
AI can build almost anything. The bottleneck is saying what you want.
WordsPricingTermsPrivacyRefundsContact
© 2026 Briefle