lib/oktakit/error.rb
# Returns the appropriate Oktakit::Error subclass based
# on status and response message
#
# @param [Hash] response HTTP response
# @return [Oktakit::Error]
Returns the appropriate Oktakit::Error subclass based
on status and response message
Returns the appropriate Oktakit :: Error subclass based on status and response message
def build_error_message
      return nil if @response.nil?
      message =  "#{@response[:method].to_s.upcase} "
      message << redact_url(@response[:url].to_s) + ': '
      message << "#{@response[:status]} - "
      message << response_message.to_s unless response_message.nil?
      message
    end
def build_error_message return nil if @response . nil? message = "#{@response[:method].to_s.upcase} " message << redact_url ( @response [ :url ] . to_s ) + ': ' message << "#{@response[:status]} - " message << response_message . to_s unless response_message . nil? message end
Returns the appropriate Oktakit::Error subclass based
on status and response message
Returns the appropriate Oktakit :: Error subclass based on status and response message
None
Oktakit::Error
<not_specific>
response HTTP response
response HTTP response