Exception: Rma::ReplacementOrderError

Inherits:
StandardError
  • Object
show all
Defined in:
app/models/rma.rb

Overview

Raised by +create_replacement_order+ for expected, user-facing failure
cases (e.g. the returned item is missing from the customer's catalog).
Controllers can rescue this narrowly instead of catching +RuntimeError+.