Exception: Balanced::MoreInformationRequired

Inherits:
Error
  • Object
show all
Defined in:
lib/balanced/error.rb

Instance Attribute Summary

Attributes inherited from Error

#response

Instance Method Summary collapse

Methods inherited from Error

#body, #initialize

Constructor Details

This class inherits a constructor from Balanced::Error

Instance Method Details

#error_messageObject



81
82
83
84
85
# File 'lib/balanced/error.rb', line 81

def error_message
  set_attrs
  "#{self.class.name} :: #{response[:method].to_s.upcase} #{response[:url].to_s}: "\
  "#{response[:status]}: \n#{body[:friendly_html]}"
end

#redirect_uriObject



77
78
79
# File 'lib/balanced/error.rb', line 77

def redirect_uri
  response.headers['Location']
end