Sha256: d73ed0d723107829cd8c10792dc2af57dd792f71befd68018a34d3c22e71023f
Contents?: true
Size: 433 Bytes
Versions: 2
Compression:
Stored size: 433 Bytes
Contents
# frozen_string_literal: true class BCDD::Result::Expectations::Error < BCDD::Result::Error class UnexpectedType < self def self.build(type:, allowed_types:) new("type :#{type} is not allowed. Allowed types: #{allowed_types.map(&:inspect).join(', ')}") end end class UnexpectedValue < self def self.build(type:, value:) new("value #{value.inspect} is not allowed for :#{type} type") end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bcdd-result-0.6.0 | lib/bcdd/result/expectations/error.rb |
bcdd-result-0.5.0 | lib/bcdd/result/expectations/error.rb |