Exception: UNotifier::UnknownTargetError
- Inherits:
-
UNotifierError
- Object
- StandardError
- UNotifierError
- UNotifier::UnknownTargetError
- Defined in:
- lib/exceptions.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#target ⇒ Object
readonly
Returns the value of attribute target.
Instance Method Summary collapse
-
#initialize(key, target) ⇒ UnknownTargetError
constructor
A new instance of UnknownTargetError.
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 = "Unknown target '#{@target}' for notification '#{@key}'" super() end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
47 48 49 |
# File 'lib/exceptions.rb', line 47 def key @key end |
#target ⇒ Object (readonly)
Returns the value of attribute target.
47 48 49 |
# File 'lib/exceptions.rb', line 47 def target @target end |