Sha256: a69f98d016223844c1ff885f35e91d28e356172ec7dc556bf8a34b10ab53d2a4

Contents?: true

Size: 505 Bytes

Versions: 7

Compression:

Stored size: 505 Bytes

Contents

# frozen_string_literal: true

require 'cloud_party/exception'
module CloudParty
  module Errors
    # Request was invalid
    class BadRequestError < RequestError
      def initialize(obj:, method:, response:, endpoint: nil, code: 400)
        super
      end

      def self.error_string
        <<~HEREDOC
          There was a '400 -- Bad Request' error.
        HEREDOC
      end

      def self.extra_string
        <<~HEREDOC
          VERB: #{@method}

        HEREDOC
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
cloud_party-0.1.7 lib/cloud_party/exceptions/request_errors/bad_request_error.rb
cloud_party-0.1.6 lib/cloud_party/exceptions/request_errors/bad_request_error.rb
cloud_party-0.1.5 lib/cloud_party/exceptions/request_errors/bad_request_error.rb
cloud_party-0.1.4 lib/cloud_party/exceptions/request_errors/bad_request_error.rb
cloud_party-0.1.3 lib/cloud_party/exceptions/request_errors/bad_request_error.rb
cloud_party-0.1.2 lib/cloud_party/exceptions/request_errors/bad_request_error.rb
cloud_party-0.1.1 lib/cloud_party/exceptions/request_errors/bad_request_error.rb