Sha256: 77449323292e790b47db317f4ae8777b753e4ed76d807eeca27983a1618953b0

Contents?: true

Size: 446 Bytes

Versions: 2

Compression:

Stored size: 446 Bytes

Contents

# frozen_string_literal: true

require 'cloud_party/exception'
module CloudParty
  # Request was invalid
  class BadRequest < 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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cloud_party-0.1.1.pre.alpha.1 lib/cloud_party/exceptions/bad_request_400.rb
cloud_party-0.1.0.pre.pre.1 lib/cloud_party/exceptions/bad_request_400.rb