#391 - Minor internals - Ebean catch Throwable on instantiation rather than RuntimeException

This commit is contained in:
Robin Bygrave
2015-08-20 10:08:54 +12:00
parent b172a32710
commit 46b158a0a0
+2 -2
View File
@@ -168,9 +168,9 @@ public final class Ebean {
defaultServer = getWithCreate(defaultName.trim());
}
}
} catch (RuntimeException e) {
} catch (Throwable e) {
logger.error("Error trying to create the default EbeanServer", e);
throw e;
throw new RuntimeException(e);
}
}