Sha256: 8cef77c55374afe98fde106a6d6fe78973fa3435cefe6885b7510ba5e244616c

Contents?: true

Size: 455 Bytes

Versions: 7

Compression:

Stored size: 455 Bytes

Contents

# frozen_string_literal: true

module CloudParty
  module Errors
    ##
    # UnRecognizedEndpointError
    #
    # When an endpoint is not recognized by the gem logic
    class UnRecognizedEndpointError < StandardError
      attr_reader :endpoint, :klass

      def initialize(endpoint, klass)
        super("'#{endpoint}' is not a recognized endpoint for class #{klass}")
        @endpoint = endpoint
        @klass = klass
      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/un_recognized_endpoint_error.rb
cloud_party-0.1.6 lib/cloud_party/exceptions/un_recognized_endpoint_error.rb
cloud_party-0.1.5 lib/cloud_party/exceptions/un_recognized_endpoint_error.rb
cloud_party-0.1.4 lib/cloud_party/exceptions/un_recognized_endpoint_error.rb
cloud_party-0.1.3 lib/cloud_party/exceptions/un_recognized_endpoint_error.rb
cloud_party-0.1.2 lib/cloud_party/exceptions/un_recognized_endpoint_error.rb
cloud_party-0.1.1 lib/cloud_party/exceptions/un_recognized_endpoint_error.rb