Exception: Arstotzka::Exception::FetcherBuilderNotFound Private

Inherits:
StandardError
  • Object
show all
Defined in:
lib/arstotzka/exception.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Exception raised when configuration for FetcherBuilder is not found

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attribute, klass) ⇒ FetcherBuilderNotFound

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of FetcherBuilderNotFound

Parameters:

  • attribute (Symbol)

    attribute’s name

  • klass (Class)

    Class where the fetcher was being accessed



19
20
21
22
# File 'lib/arstotzka/exception.rb', line 19

def initialize(attribute, klass)
  @attribute = attribute
  @klass = klass
end

Instance Attribute Details

#attributeObject (readonly, private)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



33
34
35
# File 'lib/arstotzka/exception.rb', line 33

def attribute
  @attribute
end

#klassObject (readonly, private)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



33
34
35
# File 'lib/arstotzka/exception.rb', line 33

def klass
  @klass
end

Instance Method Details

#messageString

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns message specifying which attemp created the failure

Returns:

  • (String)


27
28
29
# File 'lib/arstotzka/exception.rb', line 27

def message
  "FetcherBuild not found for #{attribute} on #{klass}"
end