Exception: BCDD::Result::Contract::Error::UnexpectedType
- Inherits:
-
BCDD::Result::Contract::Error
- Object
- StandardError
- Error
- BCDD::Result::Contract::Error
- BCDD::Result::Contract::Error::UnexpectedType
- Defined in:
- lib/bcdd/result/contract/error.rb
Class Method Summary collapse
Class Method Details
.build(type:, allowed_types:) ⇒ Object
5 6 7 |
# File 'lib/bcdd/result/contract/error.rb', line 5 def self.build(type:, allowed_types:) new("type :#{type} is not allowed. Allowed types: #{allowed_types.map(&:inspect).join(', ')}") end |