Exception: Metasql::ParameterMissing
- Defined in:
- lib/metasql/errors.rb
Overview
ParameterMissing causes when required param is not supplied.
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
Instance Method Summary collapse
-
#initialize(key) ⇒ ParameterMissing
constructor
A new instance of ParameterMissing.
- #message ⇒ Object
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
#key ⇒ Object (readonly)
Returns the value of attribute key.
16 17 18 |
# File 'lib/metasql/errors.rb', line 16 def key @key end |
Instance Method Details
#message ⇒ Object
23 24 25 |
# File 'lib/metasql/errors.rb', line 23 def "Required parameters missing: #{key}" end |