Exception: MPV::ConnectionError
- Defined in:
- lib/mpv_ipc/exceptions.rb
Overview
Raised when some socket communication error occurs. The connection will be released.
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(msg = nil) ⇒ ConnectionError
constructor
A new instance of ConnectionError.
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 |