Sha256: c2a46e2bf15d3e7b5debe6adc0bf16ea576f8bd43258c7f9e93da0726fc9c80f

Contents?: true

Size: 441 Bytes

Versions: 1

Compression:

Stored size: 441 Bytes

Contents

module HostedSolr
  module API
    class Error < RuntimeError
    end

    class APITokenMissingError < Error
      def message
        'Please configure Hosted Solr API token or set HOSTED_SOLR_API_TOKEN environment variable.'
      end
    end

    class SecretTokenMissingError < Error
      def message
        'Please configure Hosted Solr Secret token or set HOSTED_SOLR_SECRET_TOKEN environment variable.'
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hosted_solr-api-0.6.0 lib/hosted_solr/api/errors.rb