Class: Weft::Defaults::ErrorPage
- Defined in:
- lib/weft/defaults/error_page.rb
Overview
Gem-default full-document page rendered for traditional (non-htmx) responses when an error falls through to the Page recovers chain and no user override matches. Thin wrapper around ErrorComponent.
Constant Summary
Constants included from Page::Assets
Page::Assets::HTMX_ATTRS, Page::Assets::HTMX_SRC, Page::Assets::HTMX_SSE_ATTRS, Page::Assets::HTMX_SSE_SRC
Instance Attribute Summary
Attributes included from Weft::DSL::Params
Instance Method Summary collapse
-
#build(attributes = {}) ⇒ Object
The component reads the same request the page did — recovery values ride as overlays and reach every depth — so handing them over as builder kwargs would only render them as HTML attributes on the error box, exception message and all.
Methods inherited from Page
#add_child, inferred_routable?, inherited, #initialize, path_param_keys, redirect_url, render, resolve_page_path, #tag_name, #to_s, #weft_page
Methods included from Registry::Eligibility
#abstract!, #routable!, #routable?
Methods included from Page::Head
Methods included from Page::Assets
Methods included from Context::Traversal
#closest, #closest!, #enclosing, #enclosing!
Methods included from Weft::DSL::Containers
Methods included from Weft::DSL::Recoveries
Methods included from Weft::DSL::Params
included, #serializable_params, warned_collisions
Methods included from Context::Interception
Constructor Details
This class inherits a constructor from Weft::Page
Instance Method Details
#build(attributes = {}) ⇒ Object
The component reads the same request the page did — recovery values ride as overlays and reach every depth — so handing them over as builder kwargs would only render them as HTML attributes on the error box, exception message and all.
23 24 25 26 |
# File 'lib/weft/defaults/error_page.rb', line 23 def build(attributes = {}) super insert_tag(Weft::Defaults::ErrorComponent) end |