Exception: JIRA::HTTPError
- Inherits:
-
StandardError
- Object
- StandardError
- JIRA::HTTPError
- Extended by:
- Forwardable
- Defined in:
- lib/jira/http_error.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response) ⇒ HTTPError
constructor
A new instance of HTTPError.
Constructor Details
#initialize(response) ⇒ HTTPError
Returns a new instance of HTTPError.
9 10 11 12 |
# File 'lib/jira/http_error.rb', line 9 def initialize(response) @response = response @message = response.try(:message).presence || response.try(:body) end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
7 8 9 |
# File 'lib/jira/http_error.rb', line 7 def @message end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
7 8 9 |
# File 'lib/jira/http_error.rb', line 7 def response @response end |