Exception: React::ServerRendering::PrerenderError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- React::ServerRendering::PrerenderError
- Defined in:
- lib/react/server_rendering.rb
Overview
Raised when something went wrong during server rendering.
Instance Method Summary collapse
-
#initialize(component_name, props, js_message) ⇒ PrerenderError
constructor
A new instance of PrerenderError.
Constructor Details
#initialize(component_name, props, js_message) ⇒ PrerenderError
Returns a new instance of PrerenderError.
38 39 40 41 42 |
# File 'lib/react/server_rendering.rb', line 38 def initialize(component_name, props, ) = ["Encountered error \"#{.inspect}\" when prerendering #{component_name} with #{props}", .backtrace.join("\n")].join("\n") super() end |