Exception: Graphiti::Errors::SideloadQueryBuildingError
- Defined in:
- lib/graphiti/errors.rb
Instance Method Summary collapse
-
#initialize(resource_class, sideload_name) ⇒ SideloadQueryBuildingError
constructor
A new instance of SideloadQueryBuildingError.
- #message ⇒ Object
Constructor Details
#initialize(resource_class, sideload_name) ⇒ SideloadQueryBuildingError
Returns a new instance of SideloadQueryBuildingError.
284 285 286 287 |
# File 'lib/graphiti/errors.rb', line 284 def initialize(resource_class, sideload_name) @resource_class = resource_class @sideload_name = sideload_name end |
Instance Method Details
#message ⇒ Object
289 290 291 292 293 294 295 296 297 298 299 300 301 302 |
# File 'lib/graphiti/errors.rb', line 289 def <<-MSG #{@resource_class.name}: error occurred while sideloading "#{@sideload_name}"! The error was raised while attempting to build the scope for the associated Resource. Read more about sideload scoping here: www.graphiti.dev/guides/concepts/resources#customizing-scope Here's the original, underlying error: #{cause.class.name}: #{cause.} #{cause.backtrace.join("\n")} MSG end |