Exception: ParameterNotPresentException
- Inherits:
-
StandardError
- Object
- StandardError
- ParameterNotPresentException
- Defined in:
- lib/sinatra/params/errors.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(name) ⇒ ParameterNotPresentException
constructor
A new instance of ParameterNotPresentException.
Constructor Details
#initialize(name) ⇒ ParameterNotPresentException
Returns a new instance of ParameterNotPresentException.
19 20 21 |
# File 'lib/sinatra/params/errors.rb', line 19 def initialize(name) @message = "Parameter `#{name}` is not present" end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
17 18 19 |
# File 'lib/sinatra/params/errors.rb', line 17 def @message end |