| Conditions | 3 |
| Total Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | module MIDB |
||
| 27 | end |
||
| 28 | def self.exception(exc, more="") |
||
| 29 | excmsg = case exc |
||
| 30 | when :database_error then "An error occurred when trying to connect to the database. #{more}" |
||
| 31 | when :query_error then "An error occurred when trying to query the database. #{more}" |
||
| 32 | else "Unknown exception: #{exc.to_s} #{more}" |
||
| 33 | end |
||
| 34 | puts "(exception)\t#{excmsg}" |
||
| 35 | end |
||
| 38 | end |