Exception: PatternMatchingError

Inherits:
ContractBaseError show all
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

#data

Instance Method Summary collapse

Methods inherited from ContractBaseError

#initialize

Constructor Details

This class inherits a constructor from ContractBaseError

Instance Method Details

#to_contract_errorObject

Used to convert to ContractError from PatternMatchingError


37
38
39
# File 'lib/contracts/errors.rb', line 37

def to_contract_error
  ContractError.new(to_s, data)
end