Please create a local Log class, reserve logging IDs and push this exception there so that you can write 
throw log.cannotOpenDatabase(e);