Exception: Graphiti::Errors::SideloadParamsError
- Defined in:
- lib/graphiti/errors.rb
Instance Method Summary collapse
-
#initialize(resource_class, sideload_name) ⇒ SideloadParamsError
constructor
A new instance of SideloadParamsError.
- #message ⇒ Object
Constructor Details
#initialize(resource_class, sideload_name) ⇒ SideloadParamsError
Returns a new instance of SideloadParamsError.
261 262 263 264 |
# File 'lib/graphiti/errors.rb', line 261 def initialize(resource_class, sideload_name) @resource_class = resource_class @sideload_name = sideload_name end |
Instance Method Details
#message ⇒ Object
266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 |
# File 'lib/graphiti/errors.rb', line 266 def " \#{@resource_class.name}: error occurred while sideloading \"\#{@sideload_name}\"!\n\n The error was raised while attempting to build query parameters for the associated Resource.\n Read more about sideload scoping here: www.graphiti.dev/guides/concepts/resources#customizing-scope\n\n A good way to debug is to put a debugger within the 'params' block.\n\n Here's the original, underlying error:\n\n \#{cause.class.name}: \#{cause}\n \#{cause.backtrace.join(\"\\n\")}\n MSG\nend\n" |