Exception: Revolut::NotAcceptable

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

Overview

Raised when Revolut returns a 406 HTTP status code

Instance Method Summary collapse

Methods inherited from Error

error_class, error_message, from_response, #initialize

Constructor Details

This class inherits a constructor from Revolut::Error

Instance Method Details

#to_sObject

Default error message.



104
105
106
# File 'lib/revolut/error.rb', line 104

def to_s
  @message || "You requested a format that isn't JSON."
end