Exception: StubRequests::InvalidArgumentType
- Defined in:
- lib/stub_requests/exceptions.rb
Overview
InvalidArgumentType is raised when an argument is not of the expected type
Instance Method Summary collapse
-
#initialize(name:, actual:, expected:) ⇒ InvalidArgumentType
constructor
A new instance of InvalidArgumentType.
Constructor Details
#initialize(name:, actual:, expected:) ⇒ InvalidArgumentType
Returns a new instance of InvalidArgumentType
61 62 63 |
# File 'lib/stub_requests/exceptions.rb', line 61 def initialize(name:, actual:, expected:) super("The argument `:#{name}` was `#{actual}`, expected any of [#{expected.join(', ')}]") end |