Exception: Jsapi::InvalidArgumentError

Inherits:
ArgumentError
  • Object
show all
Includes:
InvalidValueHelper
Defined in:
lib/jsapi/invalid_argument_error.rb

Overview

Raised when an argument isn’t contained in the list of valid values.

Instance Method Summary collapse

Methods included from InvalidValueHelper

#build_message

Constructor Details

#initialize(name, value, valid_values: []) ⇒ InvalidArgumentError

Returns a new instance of InvalidArgumentError.



8
9
10
# File 'lib/jsapi/invalid_argument_error.rb', line 8

def initialize(name, value, valid_values: [])
  super(build_message(name, value, valid_values))
end