Mehdi Akiki

Posts tagged "error handling"

  • Published on

    Article · Interrupted execution

    Send worker failures back to the caller

    Separate a worker's business error from a broken reply path. Use a typed result and observe worker lifetime instead of returning an empty success.
  • Published on
    An is_err assertion can pass because the database is unreachable. Check the intended error category and the stored outcome so unrelated failures cannot make a negative test green.
  • Published on
    Most API errors are written for a human reading logs, not for the program that has to react. Here is what most APIs do, what the standard says, and the small set of rules that actually make errors useful.