Exception: TeamSpeak3::Exceptions::InvalidTarget
- Inherits:
-
StandardException
- Object
- Exception
- StandardException
- TeamSpeak3::Exceptions::InvalidTarget
- Defined in:
- lib/exceptions/invalid_target.rb
Instance Attribute Summary collapse
-
#target ⇒ Object
readonly
Returns the value of attribute target.
Attributes inherited from StandardException
Instance Method Summary collapse
-
#initialize(target) ⇒ InvalidTarget
constructor
A new instance of InvalidTarget.
Methods inherited from StandardException
Constructor Details
#initialize(target) ⇒ InvalidTarget
Returns a new instance of InvalidTarget.
6 7 8 9 |
# File 'lib/exceptions/invalid_target.rb', line 6 def initialize(target) @target = target @message = "Invalid target '#{target}'." end |
Instance Attribute Details
#target ⇒ Object (readonly)
Returns the value of attribute target.
4 5 6 |
# File 'lib/exceptions/invalid_target.rb', line 4 def target @target end |