Method: Honeybadger::Agent#exception_filter

Defined in:
lib/honeybadger/agent.rb

#exception_filterObject

DEPRECATED: Callback to ignore exceptions.

See public API documentation for Notice for available attributes.

Examples:

# Ignoring based on error message:
Honeybadger.exception_filter do |notice|
  notice.error_message =~ /sensitive data/
end

# Ignore an entire class of exceptions:
Honeybadger.exception_filter do |notice|
  notice.exception.class < MyError
end

Yield Returns:

  • (Boolean)

    true (to ignore) or false (to send).

[View source]

488
# File 'lib/honeybadger/agent.rb', line 488

def_delegator :config, :exception_filter