Exception: Metasql::ParameterMissing

Inherits:
BaseError
  • Object
show all
Defined in:
lib/metasql/errors.rb

Overview

ParameterMissing causes when required param is not supplied.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key) ⇒ ParameterMissing

Returns a new instance of ParameterMissing.



18
19
20
21
# File 'lib/metasql/errors.rb', line 18

def initialize(key)
  @key = key
  super
end

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



16
17
18
# File 'lib/metasql/errors.rb', line 16

def key
  @key
end

Instance Method Details

#messageObject



23
24
25
# File 'lib/metasql/errors.rb', line 23

def message
  "Required parameters missing: #{key}"
end