Incompatible types ddlutils catch block

106 Views Asked by At

I am trying to write my database to XML using ddlutils, but I needed a try/catch block. However, when I used the following code I am getting the error "Incompatible types: Required: java.lang.throwable Found: org.apache.ddlutils.DdlUtilsException"

public void writeDBToXML(Database db, String fileName) {
    try {
        new DatabaseIO().write(db, fileName);
    } catch (DdlUtilsException e) {
        //e.printStackTrace();
    }
}
0

There are 0 best solutions below