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