Exception: Poefy::MissingDBInterface

Inherits:
DatabaseError show all
Defined in:
lib/poefy/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initializeMissingDBInterface

Returns a new instance of MissingDBInterface.



116
117
118
# File 'lib/poefy/exceptions.rb', line 116

def initialize
  super msg, console_msg
end

Instance Method Details

#console_msgObject



109
110
111
112
113
114
115
# File 'lib/poefy/exceptions.rb', line 109

def console_msg
    "ERROR: Please specify the type of database to use." +
  "\n       poefy does not implement a database interface by" +
  "\n       default; you must install one of the below gems:" +
  "\n         gem install poefy-sqlite3" +
  "\n         gem install poefy-pg"
end

#msgObject



106
107
108
# File 'lib/poefy/exceptions.rb', line 106

def msg
  "Database interface not specified"
end