Skip to Content
DevelopersError CodesCodesUIInvalid error argument

Invalid error argument

Code

INVALID_ERROR_ARGUMENT

What it means

The UI received a value that is not an Error, not an AppError, and not a ProblemJSON, so it falls back to a safe default representation.

When it happens

  • A UI API receives an invalid error input and has to fall back to a safe error representation.

Typical scenarios:

  • A caller passes null, a string, or an arbitrary object as an error
  • Cross-boundary errors that lose prototype information

How to handle

  • Treat as a developer ergonomics issue: fix the call site to pass the real error.
  • In production, keep the fallback (avoid crashing error UIs), but log the original value when safe.
Last updated on
Docsv1.0.10