Module: Debrew::Raise Private

Defined in:
Library/Homebrew/debrew.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Module for allowing to ignore exceptions.

Instance Method Summary collapse

Instance Method Details

#raiseObject Also known as: fail

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.


16
17
18
19
20
21
# File 'Library/Homebrew/debrew.rb', line 16

def raise(*)
  super
rescue Exception => e # rubocop:disable Lint/RescueException
  e.extend(Ignorable)
  super(e) unless Debrew.debug(e) == :ignore
end