if (logger.isEnabledFor(Level.ERROR)) {
if(e.getClass()==ArrayIndexOutOfBoundsException.class){ if (logger.isEnabledFor(Level.DEBUG)) { logger.debug("Unbehandelte Exception", e); } } else if (logger.isEnabledFor(Level.ERROR)) {
    public void uncaughtException(Thread t, Throwable e) {        if (logger.isEnabledFor(Level.ERROR)) {            logger.error("Unbehandelte Exception", e);        }    }