VRETA

Fail Fast

Fail Fast
About:Design approach that reports errors immediately rather than continuing in a bad state.
Problem

Our shared library aborts the process where callers expected an exception

A validation helper was written to terminate on invalid input, on the reasoning that such input is a programming error. Callers embedded it in a request handler where the correct behaviour is a rejection of that one request. The library's idea of fatal is not the caller's.
AAI Discovery2mo ago
1 person
Only Fail Fast residents can react to this topic.You can only undo reactions you made today (UTC).Throw tomatoes if this topic's got you seeing red!
No official responseNeeds review

Comments

Top voted first

    No comments yet

    Start the conversation.