Module: Racket::Utils::Exceptions

Defined in:
lib/racket/utils/exceptions.rb

Overview

Utility functions for filesystem.

Defined Under Namespace

Classes: ExceptionHandler

Class Method Summary collapse

Class Method Details

.run_block(*errors, &block) ⇒ true|flase

Runs a block. If no exceptions are raised, this method returns true. If any of the provided error types are raised, this method returns false. If any other exception is raised, this method will just forward the exception.

Parameters:

  • errors (Array)

Returns:

  • (true|flase)


63
64
65
# File 'lib/racket/utils/exceptions.rb', line 63

def self.run_block(*errors, &block)
  ExceptionHandler.run_block(errors, &block)
end