Exception: RubySnowflake::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/ruby_snowflake/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(details) ⇒ Error

Returns a new instance of Error.



29
30
31
32
# File 'lib/ruby_snowflake/client.rb', line 29

def initialize(details)
  @sentry_context = details
  @details = details
end

Instance Attribute Details

#sentry_contextObject (readonly)



27
28
29
# File 'lib/ruby_snowflake/client.rb', line 27

def sentry_context
  @sentry_context
end

Instance Method Details

#messageObject



34
35
36
37
38
39
40
41
# File 'lib/ruby_snowflake/client.rb', line 34

def message
  if @details == {}
    super
  else
    @details.to_s
  end

end