Exception: Poefy::MissingDBInterface
- Inherits:
-
DatabaseError
- Object
- StandardError
- Error
- DatabaseError
- Poefy::MissingDBInterface
- Defined in:
- lib/poefy/exceptions.rb
Instance Method Summary collapse
- #console_msg ⇒ Object
-
#initialize ⇒ MissingDBInterface
constructor
A new instance of MissingDBInterface.
- #msg ⇒ Object
Constructor Details
#initialize ⇒ MissingDBInterface
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_msg ⇒ Object
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 |
#msg ⇒ Object
106 107 108 |
# File 'lib/poefy/exceptions.rb', line 106 def msg "Database interface not specified" end |