class NoMatchingPatternKeyError
Raised when matching key not found.
Public Class Methods
(?string message, matchee: M, key: K) → void
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/core/errors.rbs, line 322
def initialize: (?string message, matchee: M, key: K) -> void
Construct a new NoMatchingPatternKeyError exception with the given message, matchee and key.
Public Instance Methods
() → K
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/core/errors.rbs, line 338
def key: () -> K
Return the key caused this NoMatchingPatternKeyError exception.
() → M
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/core/errors.rbs, line 330
def matchee: () -> M
Return the matchee associated with this NoMatchingPatternKeyError exception.