Exception: JayAPI::Errors::ConfigurationError

Inherits:
Error
  • Object
show all
Defined in:
lib/jay_api/errors/configuration_error.rb

Overview

An error to be raised when there is an issue with the configuration of one of Jay’s modules.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, source_string = nil) ⇒ ConfigurationError

Creates a new instance of the class.

Parameters:

  • message (String)

    The error message

  • source_string (String) (defaults to: nil)

    The string from which the configuration was loaded.



16
17
18
19
# File 'lib/jay_api/errors/configuration_error.rb', line 16

def initialize(message, source_string = nil)
  @source_string = source_string
  super(message)
end

Instance Attribute Details

#source_stringObject (readonly)

Returns the value of attribute source_string.



10
11
12
# File 'lib/jay_api/errors/configuration_error.rb', line 10

def source_string
  @source_string
end