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