Custom Error

Noun · Development

Definitions

  1. An application-defined error type or structured error value that carries domain-specific meaning beyond generic runtime failures. Custom errors make handling, logging, and user feedback clearer because they encode intent and context explicitly.

    In plain English: An error type created by the application for a specific situation.

    Example: "The billing layer threw a custom error for expired subscriptions so the API could map it cleanly to a 402 response."

Related Terms