Exception: Canon::CompareFormatMismatchError

Inherits:
Error
  • Object
show all
Defined in:
lib/canon/errors.rb

Overview

Error raised when attempting to compare different formats

Instance Method Summary collapse

Constructor Details

#initialize(format1, format2) ⇒ CompareFormatMismatchError

Initialize a new CompareFormatMismatchError

Parameters:

  • format1 (Symbol)

    The first format

  • format2 (Symbol)

    The second format



13
14
15
# File 'lib/canon/errors.rb', line 13

def initialize(format1, format2)
  super("Cannot compare different formats: #{format1} vs #{format2}")
end