Sha256: ed094af3edafde9293cba28378dd49b9820213d723da04a85d1d1bc94c0d2dea

Contents?: true

Size: 516 Bytes

Versions: 16

Compression:

Stored size: 516 Bytes

Contents

# frozen_string_literal: true

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

      def self.error_string
        <<~HEREDOC
          There was a '401 -- Unauthorized' error.
        HEREDOC
      end

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

        HEREDOC
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
cloud_party-0.1.16 lib/cloud_party/exceptions/request_errors/unauthorized_error.rb
cloud_party-0.1.15 lib/cloud_party/exceptions/request_errors/unauthorized_error.rb
cloud_party-0.1.14 lib/cloud_party/exceptions/request_errors/unauthorized_error.rb
cloud_party-0.1.13 lib/cloud_party/exceptions/request_errors/unauthorized_error.rb
cloud_party-0.1.12 lib/cloud_party/exceptions/request_errors/unauthorized_error.rb
cloud_party-0.1.11 lib/cloud_party/exceptions/request_errors/unauthorized_error.rb
cloud_party-0.1.10 lib/cloud_party/exceptions/request_errors/unauthorized_error.rb
cloud_party-0.1.9 lib/cloud_party/exceptions/request_errors/unauthorized_error.rb
cloud_party-0.1.8 lib/cloud_party/exceptions/request_errors/unauthorized_error.rb
cloud_party-0.1.7 lib/cloud_party/exceptions/request_errors/unauthorized_error.rb
cloud_party-0.1.6 lib/cloud_party/exceptions/request_errors/unauthorized_error.rb
cloud_party-0.1.5 lib/cloud_party/exceptions/request_errors/unauthorized_error.rb
cloud_party-0.1.4 lib/cloud_party/exceptions/request_errors/unauthorized_error.rb
cloud_party-0.1.3 lib/cloud_party/exceptions/request_errors/unauthorized_error.rb
cloud_party-0.1.2 lib/cloud_party/exceptions/request_errors/unauthorized_error.rb
cloud_party-0.1.1 lib/cloud_party/exceptions/request_errors/unauthorized_error.rb