Exception: BigcommerceOAuthAPI::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/bigcommerce-oauth-api/error.rb

Instance Method Summary collapse

Instance Method Details

#inspectObject



10
11
12
# File 'lib/bigcommerce-oauth-api/error.rb', line 10

def inspect
  "#<BigcommerceOAuthAPI::Error: BigcommerceOAuthAPI::Error message=\"#{message}\">"
end

#to_hObject



6
7
8
# File 'lib/bigcommerce-oauth-api/error.rb', line 6

def to_h
  JSON.parse(message, symbolize_names: true) rescue {}
end