Sha256: 8d9c87786d5948ad732c279ba5f112c9217469b7c60aa7a328560f6af11ab3b9

Contents?: true

Size: 509 Bytes

Versions: 7

Compression:

Stored size: 509 Bytes

Contents

# frozen_string_literal: true

require 'cloud_party/exception'
module CloudParty
  module Errors
    # Page/Endpoint doesn't exist
    class NotFoundError < RequestError
      def initialize(obj:, method:, response:, endpoint: nil, code: 404)
        super
      end

      def self.error_string
        <<~HEREDOC
          There was a '404 -- Not Found' 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/not_found_error.rb
cloud_party-0.1.6 lib/cloud_party/exceptions/request_errors/not_found_error.rb
cloud_party-0.1.5 lib/cloud_party/exceptions/request_errors/not_found_error.rb
cloud_party-0.1.4 lib/cloud_party/exceptions/request_errors/not_found_error.rb
cloud_party-0.1.3 lib/cloud_party/exceptions/request_errors/not_found_error.rb
cloud_party-0.1.2 lib/cloud_party/exceptions/request_errors/not_found_error.rb
cloud_party-0.1.1 lib/cloud_party/exceptions/request_errors/not_found_error.rb