Exception: JIRA::HTTPError

Inherits:
StandardError
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/jira/http_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#messageObject (readonly)

Returns the value of attribute message.



7
8
9
# File 'lib/jira/http_error.rb', line 7

def message
  @message
end

#responseObject (readonly)

Returns the value of attribute response.



7
8
9
# File 'lib/jira/http_error.rb', line 7

def response
  @response
end