Exception: Atum::Core::ApiError
- Inherits:
-
StandardError
- Object
- StandardError
- Atum::Core::ApiError
- Defined in:
- lib/atum/core/errors.rb
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
Instance Method Summary collapse
-
#initialize(error) ⇒ ApiError
constructor
A new instance of ApiError.
Constructor Details
#initialize(error) ⇒ ApiError
Returns a new instance of ApiError.
10 11 12 13 14 15 16 17 |
# File 'lib/atum/core/errors.rb', line 10 def initialize(error) @error = error if @error.key?('documentation_url') super("#{@error['message']}, see #{@error['documentation_url']}") else super("#{@error['message']}") end end |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
8 9 10 |
# File 'lib/atum/core/errors.rb', line 8 def error @error end |