synchronized (initCloseLock) {
graphicsMode = true;
}
} catch (DeviceException ex) {
decRefCount(true);
throw (AWTError) new AWTError(ex.getMessage()).initCause(ex);
} catch (UnknownConfigurationException ex) {
decRefCount(true);
throw (AWTError) new AWTError(ex.getMessage()).initCause(ex);
} catch (AlreadyOpenException ex) {
decRefCount(true);
throw (AWTError) new AWTError(ex.getMessage()).initCause(ex);
} catch (Throwable ex) {
decRefCount(true);
log.error("Unknown exception", ex);
throw (AWTError) new AWTError(ex.getMessage()).initCause(ex);
}
}