Sha256: de3cdcbd2ba4635694e2d13e6bbd5b8007fd2a34ad3a4518a7992947afe8a83f
Contents?: true
Size: 942 Bytes
Versions: 11
Compression:
Stored size: 942 Bytes
Contents
# frozen_string_literal: true module Arstotzka # @api private # # Arstotzka exceptions module Exception # Exception raised when a key in the hash is not found class KeyNotFound < StandardError; end # Exception raised when configuration for FetcherBuilder is not found class FetcherBuilderNotFound < StandardError # Returns a new instance of FetcherBuilderNotFound # # @param attribute [Symbol] attribute's name # @param klass [Class] Class where the fetcher was being accessed # # @return [FetcherBuilderNotFound] def initialize(attribute, klass) @attribute = attribute @klass = klass end # Returns message specifying which attemp created the failure # # @return [String] def message "FetcherBuild not found for #{attribute} on #{klass}" end private attr_reader :attribute, :klass end end end
Version data entries
11 entries across 11 versions & 1 rubygems