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.
236 237 238 239 |
# File 'lib/graphiti/errors.rb', line 236 def initialize(resource_class, sideload_name) @resource_class = resource_class @sideload_name = sideload_name end |
Instance Method Details
#message ⇒ Object
241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 |
# File 'lib/graphiti/errors.rb', line 241 def <<-MSG #{@resource_class.name}: error occurred while sideloading "#{@sideload_name}"! The error was raised while attempting to build query parameters for the associated Resource. Read more about sideload scoping here: www.graphiti.dev/guides/concepts/resources#customizing-scope A good way to debug is to put a debugger within the 'params' block. Here's the original, underlying error: #{cause.class.name}: #{cause} #{cause.backtrace.join("\n")} MSG end |