Exception: IMS::LTI::Errors::ToolProxyRegistrationError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/ims/lti/errors/tool_proxy_registration_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response_status, response_body = nil) ⇒ ToolProxyRegistrationError

Returns a new instance of ToolProxyRegistrationError.



5
6
7
8
9
10
11
12
13
# File 'lib/ims/lti/errors/tool_proxy_registration_error.rb', line 5

def initialize(response_status, response_body = nil)
  @response_status = response_status
  @response_body = response_body
  super <<-EOF
Unexpected response for tool proxy registration.
HTTP Response Status: #{response_status}
HTTP Response Body: #{response_body}
EOF
end

Instance Attribute Details

#response_bodyObject (readonly)

Returns the value of attribute response_body.



3
4
5
# File 'lib/ims/lti/errors/tool_proxy_registration_error.rb', line 3

def response_body
  @response_body
end

#response_statusObject (readonly)

Returns the value of attribute response_status.



3
4
5
# File 'lib/ims/lti/errors/tool_proxy_registration_error.rb', line 3

def response_status
  @response_status
end