Exception: Onsi::Params::RelationshipNotFound
- Inherits:
-
StandardError
- Object
- StandardError
- Onsi::Params::RelationshipNotFound
- 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
-
#key ⇒ Object
readonly
Returns the value of attribute key.
Instance Method Summary collapse
-
#initialize(message, key) ⇒ RelationshipNotFound
constructor
A new instance of RelationshipNotFound.
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(, key) super() @key = key end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
11 12 13 |
# File 'lib/onsi/params.rb', line 11 def key @key end |