Exception: Teams::HttpError

Inherits:
Error
  • Object
show all
Defined in:
lib/teams/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, status:, headers:, body:, request: nil) ⇒ HttpError

Returns a new instance of HttpError.



42
43
44
45
46
47
48
# File 'lib/teams/errors.rb', line 42

def initialize(message, status:, headers:, body:, request: nil)
  super(message)
  @status = status
  @headers = headers
  @body = body
  @request = request
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



40
41
42
# File 'lib/teams/errors.rb', line 40

def body
  @body
end

#headersObject (readonly)

Returns the value of attribute headers.



40
41
42
# File 'lib/teams/errors.rb', line 40

def headers
  @headers
end

#requestObject (readonly)

Returns the value of attribute request.



40
41
42
# File 'lib/teams/errors.rb', line 40

def request
  @request
end

#statusObject (readonly)

Returns the value of attribute status.



40
41
42
# File 'lib/teams/errors.rb', line 40

def status
  @status
end