Exception: Sqlyzer::NotConnectedError

Inherits:
DatabaseError show all
Defined in:
lib/sqlyzer/errors.rb

Overview

Raised when calling an instruction which need a database connectivity before calling Sqlyzer::Db::connect to establish connexion.

Instance Method Summary collapse

Constructor Details

#initializeNotConnectedError

Returns a new instance of NotConnectedError.



49
50
51
# File 'lib/sqlyzer/errors.rb', line 49

def   initialize
  super "You have to call Sqlyzer::Db::connect at the top of your code before running this command.\nSee RDoc for more instructions."
end