Exception: TeamSpeak3::Exceptions::InvalidTargetType

Inherits:
StandardException show all
Defined in:
lib/exceptions/invalid_target_type.rb

Instance Attribute Summary collapse

Attributes inherited from StandardException

#message

Instance Method Summary collapse

Methods inherited from StandardException

#to_s

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_typeObject (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