本文整理了Java中javax.faces.context.ExceptionHandler.getUnhandledExceptionQueuedEvents()
方法的一些代码示例,展示了ExceptionHandler.getUnhandledExceptionQueuedEvents()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ExceptionHandler.getUnhandledExceptionQueuedEvents()
方法的具体详情如下:
包路径:javax.faces.context.ExceptionHandler
类名称:ExceptionHandler
方法名:getUnhandledExceptionQueuedEvents
[英]Return an Iterable
over all ExceptionQueuedEvent
s that have not yet been handled by the #handle method.
[中]对尚未通过#handle方法处理的所有ExceptionQueuedEvent
返回Iterable
。
代码示例来源:origin: com.sun.faces/jsf-api
/**
* <p>The default behavior of this method is to
* call {@link ExceptionHandler#getUnhandledExceptionQueuedEvents()}
* on the wrapped {@link ExceptionHandler} object.</p>
*
* @see ExceptionHandler#getUnhandledExceptionQueuedEvents()
*/
@Override
public Iterable<ExceptionQueuedEvent> getUnhandledExceptionQueuedEvents() {
return getWrapped().getUnhandledExceptionQueuedEvents();
}
代码示例来源:origin: org.glassfish/javax.faces
/**
* <p>The default behavior of this method is to
* call {@link ExceptionHandler#getUnhandledExceptionQueuedEvents()}
* on the wrapped {@link ExceptionHandler} object.</p>
*
* @see ExceptionHandler#getUnhandledExceptionQueuedEvents()
*/
@Override
public Iterable<ExceptionQueuedEvent> getUnhandledExceptionQueuedEvents() {
return getWrapped().getUnhandledExceptionQueuedEvents();
}
代码示例来源:origin: javax/javaee-web-api
/**
* <p>The default behavior of this method is to
* call {@link ExceptionHandler#getUnhandledExceptionQueuedEvents()}
* on the wrapped {@link ExceptionHandler} object.</p>
*
* @see ExceptionHandler#getUnhandledExceptionQueuedEvents()
*/
@Override
public Iterable<ExceptionQueuedEvent> getUnhandledExceptionQueuedEvents() {
return getWrapped().getUnhandledExceptionQueuedEvents();
}
代码示例来源:origin: org.jboss.spec.javax.faces/jboss-jsf-api_2.0_spec
/**
* <p>The default behavior of this method is to
* call {@link ExceptionHandler#getUnhandledExceptionQueuedEvents()}
* on the wrapped {@link ExceptionHandler} object.</p>
*
* @see ExceptionHandler#getUnhandledExceptionQueuedEvents()
*/
public Iterable<ExceptionQueuedEvent> getUnhandledExceptionQueuedEvents() {
return getWrapped().getUnhandledExceptionQueuedEvents();
}
代码示例来源:origin: org.apache.myfaces.extensions.cdi.bundles/myfaces-extcdi-bundle-jsf20
private boolean isUnhandledExceptionQueued(FacesContext context)
{
return context.getExceptionHandler().getUnhandledExceptionQueuedEvents() != null &&
context.getExceptionHandler().getUnhandledExceptionQueuedEvents().iterator().hasNext();
}
代码示例来源:origin: org.apache.deltaspike.modules/deltaspike-jsf-module-impl
private boolean isUnhandledExceptionQueued(FacesContext context)
{
return context.getExceptionHandler().getUnhandledExceptionQueuedEvents() != null &&
context.getExceptionHandler().getUnhandledExceptionQueuedEvents().iterator().hasNext();
}
代码示例来源:origin: org.apache.myfaces.core/myfaces-api
@Override
public Iterable<ExceptionQueuedEvent> getUnhandledExceptionQueuedEvents()
{
return getWrapped().getUnhandledExceptionQueuedEvents();
}
代码示例来源:origin: jboss/jboss-javaee-specs
/**
* <p>The default behavior of this method is to
* call {@link ExceptionHandler#getUnhandledExceptionQueuedEvents()}
* on the wrapped {@link ExceptionHandler} object.</p>
*
* @see ExceptionHandler#getUnhandledExceptionQueuedEvents()
*/
@Override
public Iterable<ExceptionQueuedEvent> getUnhandledExceptionQueuedEvents() {
return getWrapped().getUnhandledExceptionQueuedEvents();
}
代码示例来源:origin: eclipse-ee4j/mojarra
/**
* <p>The default behavior of this method is to
* call {@link ExceptionHandler#getUnhandledExceptionQueuedEvents()}
* on the wrapped {@link ExceptionHandler} object.</p>
*
* @see ExceptionHandler#getUnhandledExceptionQueuedEvents()
*/
@Override
public Iterable<ExceptionQueuedEvent> getUnhandledExceptionQueuedEvents() {
return getWrapped().getUnhandledExceptionQueuedEvents();
}
代码示例来源:origin: javax.faces/javax.faces-api
/**
* <p>The default behavior of this method is to
* call {@link ExceptionHandler#getUnhandledExceptionQueuedEvents()}
* on the wrapped {@link ExceptionHandler} object.</p>
*
* @see ExceptionHandler#getUnhandledExceptionQueuedEvents()
*/
@Override
public Iterable<ExceptionQueuedEvent> getUnhandledExceptionQueuedEvents() {
return getWrapped().getUnhandledExceptionQueuedEvents();
}
代码示例来源:origin: org.glassfish/jakarta.faces
/**
* <p>The default behavior of this method is to
* call {@link ExceptionHandler#getUnhandledExceptionQueuedEvents()}
* on the wrapped {@link ExceptionHandler} object.</p>
*
* @see ExceptionHandler#getUnhandledExceptionQueuedEvents()
*/
@Override
public Iterable<ExceptionQueuedEvent> getUnhandledExceptionQueuedEvents() {
return getWrapped().getUnhandledExceptionQueuedEvents();
}
代码示例来源:origin: org.apache.deltaspike.modules/deltaspike-jsf-module-impl-ee6
private boolean isUnhandledExceptionQueued(FacesContext context)
{
return context.getExceptionHandler().getUnhandledExceptionQueuedEvents() != null &&
context.getExceptionHandler().getUnhandledExceptionQueuedEvents().iterator().hasNext();
}
代码示例来源:origin: eclipse-ee4j/mojarra
/**
* <p>The default behavior of this method is to
* call {@link ExceptionHandler#getUnhandledExceptionQueuedEvents()}
* on the wrapped {@link ExceptionHandler} object.</p>
*
* @see ExceptionHandler#getUnhandledExceptionQueuedEvents()
*/
@Override
public Iterable<ExceptionQueuedEvent> getUnhandledExceptionQueuedEvents() {
return getWrapped().getUnhandledExceptionQueuedEvents();
}
代码示例来源:origin: com.liferay.faces/liferay-faces-bridge-impl
protected Throwable getJSF2UnhandledException(FacesContext facesContext) {
Throwable unhandledException = null;
ExceptionHandler exceptionHandler = facesContext.getExceptionHandler();
Iterable<ExceptionQueuedEvent> unhandledExceptionQueuedEvents =
exceptionHandler.getUnhandledExceptionQueuedEvents();
if (unhandledExceptionQueuedEvents != null) {
Iterator<ExceptionQueuedEvent> itr = unhandledExceptionQueuedEvents.iterator();
while (itr.hasNext()) {
ExceptionQueuedEvent exceptionQueuedEvent = itr.next();
ExceptionQueuedEventContext exceptionQueuedEventContext = exceptionQueuedEvent.getContext();
unhandledException = exceptionQueuedEventContext.getException();
break;
}
}
return unhandledException;
}
代码示例来源:origin: liferay/liferay-faces
protected Throwable getJSF2UnhandledException(FacesContext facesContext) {
Throwable unhandledException = null;
ExceptionHandler exceptionHandler = facesContext.getExceptionHandler();
Iterable<ExceptionQueuedEvent> unhandledExceptionQueuedEvents =
exceptionHandler.getUnhandledExceptionQueuedEvents();
if (unhandledExceptionQueuedEvents != null) {
Iterator<ExceptionQueuedEvent> itr = unhandledExceptionQueuedEvents.iterator();
while (itr.hasNext()) {
ExceptionQueuedEvent exceptionQueuedEvent = itr.next();
ExceptionQueuedEventContext exceptionQueuedEventContext = exceptionQueuedEvent.getContext();
unhandledException = exceptionQueuedEventContext.getException();
break;
}
}
return unhandledException;
}
代码示例来源:origin: frenchc/jetm
public void afterPhase(PhaseEvent event) {
FacesContext facesContext = event.getFacesContext();
// stop recording current phase time
EtmPoint point = (EtmPoint) facesContext.getAttributes().get(CURRENT_PHASE_POINT);
if (point != null) {
// alter name if we encounter an exception
Iterator<ExceptionQueuedEvent> it = facesContext.getExceptionHandler().getUnhandledExceptionQueuedEvents().iterator();
if (it.hasNext()) {
ExceptionQueuedEvent exceptionQueuedEvent = it.next();
point.alterName(point.getName() + " [" + exceptionQueuedEvent.getContext().getException().getClass().getSimpleName() + "]");
}
point.collect();
facesContext.getAttributes().remove(CURRENT_PHASE_POINT);
}
}
代码示例来源:origin: org.apache.myfaces.core/myfaces-shaded-impl
if( facesContext.getExceptionHandler().getUnhandledExceptionQueuedEvents().iterator().hasNext())
代码示例来源:origin: org.apache.myfaces.core.internal/myfaces-shaded-impl
if( facesContext.getExceptionHandler().getUnhandledExceptionQueuedEvents().iterator().hasNext())
内容来源于网络,如有侵权,请联系作者删除!