Exception: MPlayer::Error::BadMsgType
- Inherits:
-
MPlayerError
- Object
- RuntimeError
- MPlayerError
- MPlayer::Error::BadMsgType
- 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
-
#badtype ⇒ Object
readonly
Returns the value of attribute badtype.
Instance Method Summary collapse
-
#initialize(type) ⇒ BadMsgType
constructor
A new instance of BadMsgType.
-
#to_s ⇒ Object
:nodoc:.
-
#valid_types ⇒ Object
:nodoc:.
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
#badtype ⇒ Object (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_s ⇒ Object
: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_types ⇒ Object
:nodoc:
44 45 46 |
# File 'lib/easy_mplayer/errors.rb', line 44 def valid_types # :nodoc: DEBUG_MESSAGE_TYPES.keys.inspect end |