Exception: Onsi::Params::RelationshipNotFound

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

Overview

Raised when using ‘Params#safe_fetch`

The ErrorResponder will rescue from this and return an appropriate error to the user

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, key) ⇒ RelationshipNotFound

Returns a new instance of RelationshipNotFound.



13
14
15
16
# File 'lib/onsi/params.rb', line 13

def initialize(message, key)
  super(message)
  @key = key
end

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



11
12
13
# File 'lib/onsi/params.rb', line 11

def key
  @key
end