Class: Funicular::ErrorBoundary

Inherits:
Component show all
Defined in:
sig/error_boundary.rbs

Instance Attribute Summary collapse

Attributes inherited from Component

#children, #current_children, #dom_element, #mounted, #props, #refs, #runtime, #vdom

Instance Method Summary collapse

Methods inherited from Component

#add_child_from_view, #add_via, #bind_events, #build_button_to, #build_form_for, #build_link_to, #build_vdom, #collect_refs, #component_mounted, #component_raised, #component_unmounted, #component_updated, #component_will_mount, #component_will_unmount, #component_will_update, #hydrate, #initialize, #load_single_suspense, #load_suspense_data, #mount, #normalize_vnode_for_view, #patch, #reload_suspense, #remove_via, #render_suspense, #resources, #seed_state, #state, styles, #styles, styles_definitions, suspense_definitions, #suspense_error, #suspense_error?, #suspense_loading?, #unmount, use_suspense

Constructor Details

This class inherits a constructor from Funicular::Component

Instance Attribute Details

#error_caught_during_renderBoolean?

Returns the value of attribute error_caught_during_render.

Returns:

  • (Boolean, nil)


3
4
5
# File 'sig/error_boundary.rbs', line 3

def error_caught_during_render
  @error_caught_during_render
end

Instance Method Details

#catch_errorBoolean

Parameters:

  • error (Exception)
  • error_info (Hash[Symbol, untyped], nil)

Returns:

  • (Boolean)


6
# File 'sig/error_boundary.rbs', line 6

def catch_error: (Exception error, ?Hash[Symbol, untyped]? error_info) -> bool

#initialize_stateHash[Symbol, untyped]

Returns:

  • (Hash[Symbol, untyped])


5
# File 'sig/error_boundary.rbs', line 5

def initialize_state: () -> Hash[Symbol, untyped]

#renderVDOM::VNode, ...

Parameters:

Returns:

  • (VDOM::VNode, String, Integer, Float, Array[untyped], nil)


8
# File 'sig/error_boundary.rbs', line 8

def render: (ViewContext h) -> (VDOM::VNode | String | Integer | Float | Array[untyped] | nil)

#resetvoid

This method returns an undefined value.



7
# File 'sig/error_boundary.rbs', line 7

def reset: () -> void