Exception: MPV::ConnectionError

Inherits:
Error
  • Object
show all
Defined in:
lib/mpv_ipc/exceptions.rb

Overview

Raised when some socket communication error occurs. The connection will be released.

Direct Known Subclasses

ReleasedConnectionError

Instance Method Summary collapse

Constructor Details

#initialize(msg = nil) ⇒ ConnectionError

Returns a new instance of ConnectionError.



22
23
24
25
# File 'lib/mpv_ipc/exceptions.rb', line 22

def initialize(msg=nil)
  super(msg.is_a?(String) ? msg :
    "Socket communication error occurred with the mpv#{": #{msg}" if msg}")
end