Exception: VibeSort::ApiError
- Inherits:
-
StandardError
- Object
- StandardError
- VibeSort::ApiError
- Defined in:
- lib/vibe_sort/error.rb
Overview
Custom error class for API-related errors
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(message, response = nil) ⇒ ApiError
constructor
Initialize a new ApiError.
Constructor Details
#initialize(message, response = nil) ⇒ ApiError
Initialize a new ApiError
12 13 14 15 |
# File 'lib/vibe_sort/error.rb', line 12 def initialize(, response = nil) super() @response = response end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
6 7 8 |
# File 'lib/vibe_sort/error.rb', line 6 def response @response end |