Sha256: a666db19ceb29becc467e9d65db5cdae0f7b20cba0e6cac28bf94048be76d28c
Contents?: true
Size: 661 Bytes
Versions: 3
Compression:
Stored size: 661 Bytes
Contents
# frozen_string_literal: true module MediaTypes module Errors # Raised when trying to set a module key expectation twice class KeyExpectationSetError < StandardError def initialize(mod:) super(format('%<mod>s already has a key expectation set', mod: mod.name)) end end # Raised when trying to set a module key expectation while default expectation already used class KeyExpectationUsedError < StandardError def initialize(mod:) super(format('Unable to change key type expectation for %<mod>s since its current expectation is already used', mod: mod.name)) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
media_types-2.2.0 | lib/media_types/errors.rb |
media_types-2.1.1 | lib/media_types/errors.rb |
media_types-2.1.0 | lib/media_types/errors.rb |