Exception: Contract::ContractMismatch

Inherits:
TypeError
  • Object
show all
Includes:
ContractException
Defined in:
lib/carat-dev/interface_work/contracts/contract/lib/contract/exception.rb

Overview

Represents a failed test in a contract. This means that an object simply does not fulfill one of the parts of a contract. Subclass of TypeError.

Instance Attribute Summary

Attributes included from ContractException

#original_message, #test_contract, #test_method, #test_object

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ ContractMismatch

:nodoc:



39
40
41
# File 'lib/carat-dev/interface_work/contracts/contract/lib/contract/exception.rb', line 39

def initialize(*args) # :nodoc:

  ce_initialize(*args)
end