/** * PUBLIC: * Allow any WARNING level exceptions that occur within EclipseLink to be logged and handled by the exception handler. */ public Object handleException(RuntimeException exception) throws RuntimeException { if ((exception instanceof EclipseLinkException)) { EclipseLinkException eclipseLinkException = (EclipseLinkException)exception; if (eclipseLinkException.getSession() == null) { eclipseLinkException.setSession(this); } //Bug#3559280 Avoid logging an exception twice if (!eclipseLinkException.hasBeenLogged()) { logThrowable(SessionLog.WARNING, null, exception); eclipseLinkException.setHasBeenLogged(true); } } else { logThrowable(SessionLog.WARNING, null, exception); } if (hasExceptionHandler()) { return getExceptionHandler().handleException(exception); } else { throw exception; } }
if ((exception instanceof EclipseLinkException)) { EclipseLinkException eclipseLinkException = (EclipseLinkException)exception; if (eclipseLinkException.getSession() == null) { eclipseLinkException.setSession(this);
if ((exception instanceof EclipseLinkException)) { EclipseLinkException eclipseLinkException = (EclipseLinkException)exception; if (eclipseLinkException.getSession() == null) { eclipseLinkException.setSession(this);