Module: Snails::ErrorBoundary

Defined in:
runtime/snails/error_boundary.rbs,
runtime/snails/error_boundary.rb

Class Method Summary collapse

  • .fatal?(failure) ⇒ Boolean

    true when the exception means the process is stopping (SystemExit, SignalException — Interrupt included) or the VM is unsafe to continue (NoMemoryError).

Class Method Details

.fatal?(failure) ⇒ Boolean

true when the exception means the process is stopping (SystemExit, SignalException — Interrupt included) or the VM is unsafe to continue (NoMemoryError). Those must escape every unit boundary; every other Exception is a unit failure the loop survives (for example NotImplementedError, a ScriptError).

Parameters:

  • failure (Exception) —

    the exception a unit boundary rescued

Returns:

  • (Boolean) —

    true when the boundary must re-raise



22
# File 'runtime/snails/error_boundary.rb', line 22

def self.fatal?: (Exception failure) -> bool