Exception: Sqlyzer::NotConnectedError
- Inherits:
-
DatabaseError
- Object
- RuntimeError
- Error
- DatabaseError
- Sqlyzer::NotConnectedError
- 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
-
#initialize ⇒ NotConnectedError
constructor
A new instance of NotConnectedError.
Constructor Details
#initialize ⇒ NotConnectedError
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 |