Exception: Astroboa::ClientError
- Defined in:
- lib/astroboa-rb/clienterror.rb
Instance Attribute Summary collapse
-
#api_code ⇒ Object
Returns the value of attribute api_code.
-
#api_response ⇒ Object
Returns the value of attribute api_response.
- #message ⇒ Object
Instance Method Summary collapse
-
#initialize(message = nil, api_code = nil, api_response = nil) ⇒ ClientError
constructor
A new instance of ClientError.
- #inspect ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(message = nil, api_code = nil, api_response = nil) ⇒ ClientError
Returns a new instance of ClientError.
21 22 23 24 25 |
# File 'lib/astroboa-rb/clienterror.rb', line 21 def initialize = nil, api_code = nil, api_response = nil @message = @api_code = api_code @api_response = api_response end |
Instance Attribute Details
#api_code ⇒ Object
Returns the value of attribute api_code.
18 19 20 |
# File 'lib/astroboa-rb/clienterror.rb', line 18 def api_code @api_code end |
#api_response ⇒ Object
Returns the value of attribute api_response.
18 19 20 |
# File 'lib/astroboa-rb/clienterror.rb', line 18 def api_response @api_response end |
#message ⇒ Object
35 36 37 |
# File 'lib/astroboa-rb/clienterror.rb', line 35 def @message || self.class.name end |