Exception: Whatsapp::NotConnected

Inherits:
Error
  • Object
show all
Defined in:
lib/whatsapp/errors.rb

Overview

Raised when the WhatsApp account is not connected (QR code not scanned).

Instance Method Summary collapse

Constructor Details

#initialize(msg = "WhatsApp is not connected. Call connect first.") ⇒ NotConnected

Returns a new instance of NotConnected.



42
43
44
# File 'lib/whatsapp/errors.rb', line 42

def initialize(msg = "WhatsApp is not connected. Call connect first.")
  super
end