Exception: Fontisan::DeltaMismatchError
- Inherits:
-
VariationError
- Object
- StandardError
- Error
- VariationError
- Fontisan::DeltaMismatchError
- Defined in:
- lib/fontisan/error.rb
Overview
Delta count mismatch
Raised when delta arrays have mismatched lengths.
Instance Attribute Summary
Attributes inherited from VariationError
Instance Method Summary collapse
-
#initialize(expected:, actual:, location:) ⇒ DeltaMismatchError
constructor
Initialize with delta details.
Methods inherited from VariationError
Constructor Details
#initialize(expected:, actual:, location:) ⇒ DeltaMismatchError
Initialize with delta details
141 142 143 144 145 146 147 |
# File 'lib/fontisan/error.rb', line 141 def initialize(expected:, actual:, location:) super( "Delta count mismatch at #{location}: expected #{expected}, got #{actual}", context: { expected: expected, actual: actual, location: location }, suggestion: "Verify variation data integrity in #{location}" ) end |