Exception: UNotifier::NotificationsConfigNotFoundError

Inherits:
UNotifierError
  • Object
show all
Defined in:
lib/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ NotificationsConfigNotFoundError

Returns a new instance of NotificationsConfigNotFoundError.



28
29
30
31
32
33
# File 'lib/exceptions.rb', line 28

def initialize(path)
  @path = path
  @absolute_path = File.expand_path(@path)
  message = "Configuration file not found at #{@absolute_path}"
  super(message)
end

Instance Attribute Details

#absolute_pathObject (readonly)

Returns the value of attribute absolute_path.



26
27
28
# File 'lib/exceptions.rb', line 26

def absolute_path
  @absolute_path
end

#pathObject (readonly)

Returns the value of attribute path.



26
27
28
# File 'lib/exceptions.rb', line 26

def path
  @path
end