Method: Contract#failure_exception
- Defined in:
- lib/contracts.rb
#failure_exception ⇒ Object
Used to determine type of failure exception this contract should raise in case of failure
253 254 255 256 257 258 259 |
# File 'lib/contracts.rb', line 253 def failure_exception if @pattern_match PatternMatchingError else ParamContractError end end |