Exception: RubySnowflake::Error
- Inherits:
-
StandardError
- Object
- StandardError
- RubySnowflake::Error
- Defined in:
- lib/ruby_snowflake/client.rb
Direct Known Subclasses
BadResponseError, ConnectionError, ConnectionStarvedError, MissingConfig, QueryTimeoutError, RequestError, RetryableBadResponseError
Instance Attribute Summary collapse
-
#sentry_context ⇒ Object
readonly
This will get pulled through to Sentry, see: github.com/getsentry/sentry-ruby/blob/11ecd254c0d2cae2b327f0348074e849095aa32d/sentry-ruby/lib/sentry/error_event.rb#L31-L33.
Instance Method Summary collapse
-
#initialize(details) ⇒ Error
constructor
A new instance of Error.
- #message ⇒ Object
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_context ⇒ Object (readonly)
This will get pulled through to Sentry, see: github.com/getsentry/sentry-ruby/blob/11ecd254c0d2cae2b327f0348074e849095aa32d/sentry-ruby/lib/sentry/error_event.rb#L31-L33
27 28 29 |
# File 'lib/ruby_snowflake/client.rb', line 27 def sentry_context @sentry_context end |
Instance Method Details
#message ⇒ Object
34 35 36 37 38 39 40 41 |
# File 'lib/ruby_snowflake/client.rb', line 34 def if @details == {} super else @details.to_s end end |