module TinyPng::ExceptionHandling

Public Instance Methods

raise_exception(exception, message) click to toggle source

If exceptions are suppressed, just return false. Otherwise, raise the given exception

# File lib/tiny_png/exception_handling.rb, line 5
def raise_exception exception, message
  return false if @options[:suppress_exceptions]
  raise exception, message
end