Sha256: 14b4a9ede5ba7d2246e153722c5db6889f313179e114ffe860744dc4df56166f
Contents?: true
Size: 1.53 KB
Versions: 6
Compression:
Stored size: 1.53 KB
Contents
require "qa/engine" require "active_record" require "activerecord-import" module Qa extend ActiveSupport::Autoload autoload :Authorities autoload :Configuration autoload :Services # @api public # # Exposes the Questioning Authority configuration # # @yield [Qa::Configuration] if a block is passed # @return [Qa::Configuration] # @see Qa::Configuration for configuration options def self.config(&block) @config ||= Qa::Configuration.new yield @config if block @config end # Raised when the configuration directory for local authorities doesn't exist class ConfigDirectoryNotFound < StandardError; end # Raised when a subauthority is not passed into an authority class MissingSubAuthority < ArgumentError; end # Raised when a subauthority is not valid class InvalidSubAuthority < ArgumentError; end # Raised when a request is made to a non-configured linked data authority class InvalidLinkedDataAuthority < ArgumentError; end # Raised when a response is in an unsupported format class UnsupportedFormat < ArgumentError; end # Raised when a configuration parameter is incorrect or is required and missing class InvalidConfiguration < ArgumentError; end # Raised when a linked data request to a server returns a 503 error class ServiceUnavailable < ArgumentError; end # Raised when a linked data request to a server returns a 500 error class ServiceError < ArgumentError; end # Raised when the server returns 404 for a find term request class TermNotFound < ArgumentError; end end
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
qa-3.1.0 | lib/qa.rb |
qa-2.3.0 | lib/qa.rb |
qa-3.0.0 | lib/qa.rb |
qa-2.2.0 | lib/qa.rb |
qa-2.1.2 | lib/qa.rb |
qa-2.1.1 | lib/qa.rb |