Exception: ParameterNotPresentException

Inherits:
StandardError
  • Object
show all
Defined in:
lib/sinatra/params/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#messageObject (readonly)

Returns the value of attribute message.



17
18
19
# File 'lib/sinatra/params/errors.rb', line 17

def message
  @message
end