Exception: MPlayer::Error::BadCallArgs

Inherits:
BadCall show all
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

Attributes inherited from BadCall

#args, #cmd

Instance Method Summary collapse

Methods inherited from BadCall

#called_as

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, message)
  @msg   = message
  @usage = command.usage
  super(command.cmd, called_args)
end

Instance Attribute Details

#msgObject (readonly)

Returns the value of attribute msg.



83
84
85
# File 'lib/easy_mplayer/errors.rb', line 83

def msg
  @msg
end

#usageObject (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_sObject

:nodoc:



85
86
87
# File 'lib/easy_mplayer/errors.rb', line 85

def to_s # :nodoc:
  super + " - #{msg}\nusage: #{usage}"
end