Exception: RHACK::BasicError
- Defined in:
- lib/rhack/clients/errors.rb
Overview
Abstraction, don’t use it.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#details ⇒ Object
keep here debugful data.
Instance Method Summary collapse
-
#initialize(message, *opts) ⇒ BasicError
constructor
# Usage …
Constructor Details
#initialize(message, *opts) ⇒ BasicError
# Usage … # … without :details keyword, as usual: raise ServerError, ‘an error has occured’ # … with :details keyword raise ServerError.new ‘an error has occured’, details: @curl_res # … if you also want to set custom backtrace raise ServerError.new(‘an error has occured’, details: @curl_res), backtrace_array
15 16 17 18 |
# File 'lib/rhack/clients/errors.rb', line 15 def initialize(, *opts) # details: nil @details = opts.[:details] super end |
Instance Attribute Details
#details ⇒ Object
keep here debugful data
6 7 8 |
# File 'lib/rhack/clients/errors.rb', line 6 def details @details end |