Exception: PatternMatchingError
- Inherits:
-
ContractBaseError
- Object
- ArgumentError
- ContractBaseError
- PatternMatchingError
- Defined in:
- lib/contracts/errors.rb
Overview
Special contract error used internally to detect pattern failure during pattern matching
Instance Attribute Summary
Attributes inherited from ContractBaseError
Instance Method Summary collapse
-
#to_contract_error ⇒ Object
Used to convert to ContractError from PatternMatchingError.
Methods inherited from ContractBaseError
Constructor Details
This class inherits a constructor from ContractBaseError
Instance Method Details
#to_contract_error ⇒ Object
Used to convert to ContractError from PatternMatchingError
35 36 37 |
# File 'lib/contracts/errors.rb', line 35 def to_contract_error ContractError.new(to_s, data) end |