Exception: React::Sinatra::RuntimeError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/react/sinatra/error.rb

Instance Method Summary collapse

Constructor Details

#initialize(component, props, message:, **options) ⇒ RuntimeError



4
5
6
7
8
# File 'lib/react/sinatra/error.rb', line 4

def initialize(component, props, message:, **options)
  message = ["Encountered error \"#{message}\" when prerendering #{component} with #{props}",
    message.backtrace.join(?\n)].join(?\n)
  super(message)
end