本文整理匯總了Java中javax.el.ELException.getCause方法的典型用法代碼示例。如果您正苦於以下問題:Java ELException.getCause方法的具體用法?Java ELException.getCause怎麽用?Java ELException.getCause使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類javax.el.ELException
的用法示例。
在下文中一共展示了ELException.getCause方法的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: broadcastToMethodExpression
import javax.el.ELException; //導入方法依賴的package包/類
/**
* Broadcast an event to a MethodExpression.
* This can be used to support MethodBindings such as the "actionListener"
* binding on ActionSource components:
* <tr:commandButton actionListener="#{mybean.myActionListener}">
*/
protected final void broadcastToMethodExpression(
FacesEvent event,
MethodExpression method) throws AbortProcessingException
{
if (method != null)
{
try
{
FacesContext context = getFacesContext();
method.invoke(context.getELContext(), new Object[] { event });
}
catch (ELException ee)
{
Throwable t = ee.getCause();
// Unwrap AbortProcessingExceptions
if (t instanceof AbortProcessingException)
throw ((AbortProcessingException) t);
throw ee;
}
}
}
示例2: invoke
import javax.el.ELException; //導入方法依賴的package包/類
public Object invoke(FacesContext context, Object[] params)
{
try
{
return _expression.invoke(context.getELContext(), params);
}
// Convert EL exceptions into EvaluationExceptions
catch (ELException ee)
{
throw new EvaluationException(ee.getMessage(), ee.getCause());
}
}
示例3: invoke
import javax.el.ELException; //導入方法依賴的package包/類
public Object invoke(FacesContext facesContext, Object[] params)
{
try
{
return _me.invoke(facesContext.getELContext(), params);
}
// Convert EL exceptions into EvaluationExceptions
catch (ELException ee)
{
throw new EvaluationException(ee.getMessage(), ee.getCause());
}
}
示例4: getValue
import javax.el.ELException; //導入方法依賴的package包/類
@SuppressWarnings("deprecation")
public Object getValue(FacesContext facesContext)
{
try
{
return _ve.getValue(facesContext.getELContext());
}
// Convert EL exceptions into EvaluationExceptions
catch (ELException ee)
{
throw new EvaluationException(ee.getMessage(), ee.getCause());
}
}
示例5: setValue
import javax.el.ELException; //導入方法依賴的package包/類
@SuppressWarnings("deprecation")
public void setValue(FacesContext facesContext, Object object)
{
try
{
_ve.setValue(facesContext.getELContext(), object);
}
// Convert EL exceptions into EvaluationExceptions
catch (ELException ee)
{
throw new EvaluationException(ee.getMessage(), ee.getCause());
}
}
示例6: isReadOnly
import javax.el.ELException; //導入方法依賴的package包/類
@SuppressWarnings("deprecation")
public boolean isReadOnly(FacesContext facesContext)
{
try
{
return _ve.isReadOnly(facesContext.getELContext());
}
// Convert EL exceptions into EvaluationExceptions
catch (ELException ee)
{
throw new EvaluationException(ee.getMessage(), ee.getCause());
}
}
示例7: getType
import javax.el.ELException; //導入方法依賴的package包/類
@SuppressWarnings("deprecation")
public Class getType(FacesContext facesContext)
{
try
{
return _ve.getType(facesContext.getELContext());
}
// Convert EL exceptions into EvaluationExceptions
catch (ELException ee)
{
throw new EvaluationException(ee.getMessage(), ee.getCause());
}
}
示例8: JspELException
import javax.el.ELException; //導入方法依賴的package包/類
public JspELException(String mark, ELException e) {
super(mark + " " + e.getMessage(), e.getCause());
}
示例9: JspELException
import javax.el.ELException; //導入方法依賴的package包/類
public JspELException(String mark, ELException e) {
super(mark + " " + e.getMessage(), e.getCause());
}