Exception: Onboardable::ComparisonResultError
- Defined in:
- lib/onboardable/errors.rb
Overview
Error raised when an invalid comparison result is encountered.
Instance Method Summary collapse
-
#initialize(comparison, expected_comparisons) ⇒ ComparisonResultError
constructor
Initializes a new ComparisonResultError with details about the issue.
Constructor Details
#initialize(comparison, expected_comparisons) ⇒ ComparisonResultError
Initializes a new ComparisonResultError with details about the issue.
55 56 57 |
# File 'lib/onboardable/errors.rb', line 55 def initialize(comparison, expected_comparisons) super("Invalid comparison result: `#{comparison}`. Must be one of: #{expected_comparisons.join('`, `')}.") end |