Exception: MPlayer::Error::BadCallArgs
- Inherits:
-
BadCall
- Object
- RuntimeError
- MPlayerError
- BadCall
- MPlayer::Error::BadCallArgs
- Defined in:
- lib/easy_mplayer/errors.rb
Overview
tried to pass a slave-mode command to mplayer, but the call didn’t match the API prototype mplayer itself provided
Instance Attribute Summary collapse
-
#msg ⇒ Object
readonly
Returns the value of attribute msg.
-
#usage ⇒ Object
readonly
Returns the value of attribute usage.
Attributes inherited from BadCall
Instance Method Summary collapse
-
#initialize(command, called_args, message) ⇒ BadCallArgs
constructor
A new instance of BadCallArgs.
-
#to_s ⇒ Object
:nodoc:.
Methods inherited from BadCall
Constructor Details
#initialize(command, called_args, message) ⇒ BadCallArgs
Returns a new instance of BadCallArgs.
90 91 92 93 94 |
# File 'lib/easy_mplayer/errors.rb', line 90 def initialize(command, called_args, ) @msg = @usage = command.usage super(command.cmd, called_args) end |
Instance Attribute Details
#msg ⇒ Object (readonly)
Returns the value of attribute msg.
83 84 85 |
# File 'lib/easy_mplayer/errors.rb', line 83 def msg @msg end |
#usage ⇒ Object (readonly)
Returns the value of attribute usage.
83 84 85 |
# File 'lib/easy_mplayer/errors.rb', line 83 def usage @usage end |
Instance Method Details
#to_s ⇒ Object
:nodoc:
85 86 87 |
# File 'lib/easy_mplayer/errors.rb', line 85 def to_s # :nodoc: super + " - #{msg}\nusage: #{usage}" end |