Exception: Graphiti::Errors::InvalidLink
- Defined in:
- lib/graphiti/errors.rb
Instance Method Summary collapse
-
#initialize(resource_class, sideload, action) ⇒ InvalidLink
constructor
A new instance of InvalidLink.
- #message ⇒ Object
Constructor Details
#initialize(resource_class, sideload, action) ⇒ InvalidLink
Returns a new instance of InvalidLink.
210 211 212 213 214 |
# File 'lib/graphiti/errors.rb', line 210 def initialize(resource_class, sideload, action) @resource_class = resource_class @sideload = sideload @action = action end |
Instance Method Details
#message ⇒ Object
216 217 218 219 220 221 222 223 224 |
# File 'lib/graphiti/errors.rb', line 216 def " \#{@resource_class.name}: Cannot link to sideload \#{@sideload.name.inspect}!\n\n Make sure the endpoint \"\#{@sideload.resource.endpoint[:full_path]}\" exists with action \#{@action.inspect}, or customize the endpoint for \#{@sideload.resource.class.name}.\n\n If you do not wish to generate a link, pass link: false or set self.autolink = false.\n MSG\nend\n" |