Exception: GdsApi::BaseError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/gds_api/exceptions.rb

Overview

Abstract error class

Instance Method Summary collapse

Instance Method Details

#raven_contextObject

Give Sentry extra context about this event docs.sentry.io/clients/ruby/context/



6
7
8
9
10
11
12
13
# File 'lib/gds_api/exceptions.rb', line 6

def raven_context
  {
    # Make Sentry group exceptions by type instead of message, so all
    # exceptions like `GdsApi::TimedOutException` will get grouped as one
    # error and not an error per URL.
    fingerprint: [self.class.name],
  }
end