Exception: Sinatra::Helpers::Wanted::WantedError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/sinatra/helpers/wanted.rb

Overview

Generic exception. Only the inherited exceptions are raised.

Direct Known Subclasses

WantedMissing, WantedNotFound, WantedSyntaxError

Instance Method Summary collapse

Constructor Details

#initialize(msg = nil, value: nil, id: nil) ⇒ WantedError

Returns a new instance of WantedError.



17
18
19
20
21
# File 'lib/sinatra/helpers/wanted.rb', line 17

def initialize(msg=nil, value: nil, id: nil)
    super(msg)
    @value = value
    @id    = id
end