forked from StarOpenSource/Engine
Catch all throwables for Window.Builder.build()
This commit is contained in:
parent
55091d3cd1
commit
c194cf2001
1 changed files with 2 additions and 3 deletions
|
@ -20,7 +20,6 @@
|
||||||
package de.staropensource.sosengine.testapp;
|
package de.staropensource.sosengine.testapp;
|
||||||
|
|
||||||
import de.staropensource.sosengine.base.Engine;
|
import de.staropensource.sosengine.base.Engine;
|
||||||
import de.staropensource.sosengine.base.exceptions.UnexpectedThrowableException;
|
|
||||||
import de.staropensource.sosengine.base.logging.LoggerInstance;
|
import de.staropensource.sosengine.base.logging.LoggerInstance;
|
||||||
import de.staropensource.sosengine.base.types.CodePart;
|
import de.staropensource.sosengine.base.types.CodePart;
|
||||||
import de.staropensource.sosengine.base.types.logging.LogIssuer;
|
import de.staropensource.sosengine.base.types.logging.LogIssuer;
|
||||||
|
@ -119,8 +118,8 @@ public class Main {
|
||||||
.setSize(new Vec2i(960, 540))
|
.setSize(new Vec2i(960, 540))
|
||||||
.setPosition(new Vec2i(10, 10))
|
.setPosition(new Vec2i(10, 10))
|
||||||
.build();
|
.build();
|
||||||
} catch (UnexpectedThrowableException exception) {
|
} catch (Throwable throwable) {
|
||||||
logger.crash("build() throw an UnexpectedThrowableException", exception.getThrowable());
|
logger.crash("Window.Builder#build() failed", throwable);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Sleep for five seconds
|
// Sleep for five seconds
|
||||||
|
|
Loading…
Reference in a new issue