Exception: Contract::ContractMismatch
- Inherits:
-
TypeError
- Object
- TypeError
- Contract::ContractMismatch
- Includes:
- ContractException
- Defined in:
- 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
-
#initialize(*args) ⇒ ContractMismatch
constructor
:nodoc:.
Constructor Details
#initialize(*args) ⇒ ContractMismatch
:nodoc:
42 43 44 |
# File 'lib/contract/exception.rb', line 42 def initialize(*args) # :nodoc: ce_initialize(*args) end |