discourse/lib/service
Loïc Guitaut 6e22f8fac8 DEV: Remove generic exception in model step in services
Currently when a model is not found, we raise an `ArgumentError`
exception and that exception is stored in the resulting context object.

However, since we’re also storing unexpected exceptions, this default
exception can pollute the context object when we need to inspect it or
act on it.

This patch addresses that issue by raising a custom exception instead,
and we then discard it from the context object.
2025-06-17 16:12:28 +02:00
..
action_base.rb
base.rb DEV: Remove generic exception in model step in services 2025-06-17 16:12:28 +02:00
contract_base.rb DEV: Remove hash-like access from service contracts 2024-10-29 16:02:51 +01:00
options_base.rb DEV: Provide user input to services using params key 2024-10-25 09:57:59 +02:00
policy_base.rb
runner.rb DEV: Follow-up to the lock step for services 2025-02-06 11:38:15 +01:00
steps_inspector.rb DEV: Remove generic exception in model step in services 2025-06-17 16:12:28 +02:00