Exception: UNotifier::UnknownTargetError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key, target) ⇒ UnknownTargetError

Returns a new instance of UnknownTargetError.



49
50
51
52
53
54
# File 'lib/exceptions.rb', line 49

def initialize(key, target)
  @key = key
  @target = target
  message = "Unknown target '#{@target}' for notification '#{@key}'"
  super(message)
end

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



47
48
49
# File 'lib/exceptions.rb', line 47

def key
  @key
end

#targetObject (readonly)

Returns the value of attribute target.



47
48
49
# File 'lib/exceptions.rb', line 47

def target
  @target
end