Exception: Solid::Result::Contract::Error::UnexpectedValue
- Inherits:
-
Solid::Result::Contract::Error
- Object
- StandardError
- Error
- Solid::Result::Contract::Error
- Solid::Result::Contract::Error::UnexpectedValue
- Defined in:
- lib/solid/result/contract/error.rb
Class Method Summary collapse
Class Method Details
.build(type:, value:, cause: nil) ⇒ Object
11 12 13 14 15 |
# File 'lib/solid/result/contract/error.rb', line 11 def self.build(type:, value:, cause: nil) = " (#{cause.})" if cause new("value #{value.inspect} is not allowed for :#{type} type#{}") end |