Exception: FlexibleApi::NoSuchRequestLevelError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/flexible_api/no_such_request_level_error.rb

Instance Method Summary collapse

Constructor Details

#initialize(rl_name, klass_name) ⇒ NoSuchRequestLevelError

Returns a new instance of NoSuchRequestLevelError.



5
6
7
# File 'lib/flexible_api/no_such_request_level_error.rb', line 5

def initialize(rl_name, klass_name)
  @message = "There is no request level '#{rl_name}' for #{klass_name}"
end

Instance Method Details

#messageObject



9
10
11
# File 'lib/flexible_api/no_such_request_level_error.rb', line 9

def message
  @message
end