Module: Racket::Utils::Exceptions

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

Overview

Utility functions for filesystem.

Defined Under Namespace

Classes: ExceptionHandler

Instance Method Summary collapse

Instance 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 run_block(*errors, &block)
  ExceptionHandler.run_block(errors, &block)
end