Exception: MPlayer::Error::BadMsgType

Inherits:
MPlayerError
  • Object
show all
Defined in:
lib/easy_mplayer/errors.rb

Overview

tried to change to a different level of output that doesn’t exist

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type) ⇒ BadMsgType

Returns a new instance of BadMsgType.



52
53
54
55
# File 'lib/easy_mplayer/errors.rb', line 52

def initialize(type)
  @badtype = type
  super(to_s)
end

Instance Attribute Details

#badtypeObject (readonly)

Returns the value of attribute badtype.



42
43
44
# File 'lib/easy_mplayer/errors.rb', line 42

def badtype
  @badtype
end

Instance Method Details

#to_sObject

:nodoc:



48
49
50
# File 'lib/easy_mplayer/errors.rb', line 48

def to_s # :nodoc:
  "Bad debug message type \"#{badtype}\"\nValid types " + valid_types
end

#valid_typesObject

:nodoc:



44
45
46
# File 'lib/easy_mplayer/errors.rb', line 44

def valid_types # :nodoc:
  DEBUG_MESSAGE_TYPES.keys.inspect
end