Sha256: 17ea1e03f1fe51b84fa75820d5d8771b96c5b5900c4354e95ed32db209caf1a1

Contents?: true

Size: 160 Bytes

Versions: 9

Compression:

Stored size: 160 Bytes

Contents

module DeepL
  module Exceptions
    class BadRequest < RequestError
      def message
        JSON.parse(response.body)['message']
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
deepl-rb-2.2.2 lib/deepl/exceptions/bad_request.rb
deepl-rb-2.2.1 lib/deepl/exceptions/bad_request.rb
deepl-rb-2.2.0 lib/deepl/exceptions/bad_request.rb
deepl-rb-2.1.0 lib/deepl/exceptions/bad_request.rb
deepl-rb-2.0.0 lib/deepl/exceptions/bad_request.rb
deepl-rb-1.0.1 lib/deepl/exceptions/bad_request.rb
deepl-rb-1.0.0 lib/deepl/exceptions/bad_request.rb
deepl-rb-0.0.1 lib/deepl/exceptions/bad_request.rb
deepl-rb-0.0.0 lib/deepl/exceptions/bad_request.rb