Exception: Jsapi::InvalidValueError

Inherits:
RuntimeError
  • Object
show all
Includes:
InvalidValueHelper
Defined in:
lib/jsapi/invalid_value_error.rb

Overview

Raised when a value 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: []) ⇒ InvalidValueError

Returns a new instance of InvalidValueError.



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

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