javax.faces.el.PropertyNotFoundException.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(8.3k)|赞(0)|评价(0)|浏览(110)

本文整理了Java中javax.faces.el.PropertyNotFoundException.<init>()方法的一些代码示例,展示了PropertyNotFoundException.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。PropertyNotFoundException.<init>()方法的具体详情如下:
包路径:javax.faces.el.PropertyNotFoundException
类名称:PropertyNotFoundException
方法名:<init>

PropertyNotFoundException.<init>介绍

[英]Construct a new exception with no detail message or root cause.
[中]构造一个没有详细信息或根本原因的新异常。

代码示例

代码示例来源:origin: org.springframework/spring-webflow

private void assertPropertyNameValid(Object property) {
  if (property == null) {
    throw new PropertyNotFoundException("The name of the flow execution attribute cannot be null");
  }
  if (!(property instanceof String)) {
    throw new PropertyNotFoundException("Flow execution attribute names must be strings but " + property
        + " was not");
  }
  if (((String) property).length() == 0) {
    throw new PropertyNotFoundException("The name of the flow execution attribute cannot be blank");
  }
}

代码示例来源:origin: org.richfaces.ui.common/richfaces-ui-common-ui

@Override
public Object getValue(FacesContext context) throws EvaluationException {
  try {
    return expression.getValue(context.getELContext());
  } catch (javax.el.PropertyNotFoundException e) {
    throw new PropertyNotFoundException(e);
  } catch (ELException e) {
    throw new EvaluationException(e);
  }
}

代码示例来源:origin: org.apache.myfaces/com.springsource.org.apache.myfaces

public boolean isReadOnly(Object base, int index) 
  throws EvaluationException, PropertyNotFoundException {
  
  try {
    return elResolver.isReadOnly(elContext(), base, new Integer(index));
  } catch (javax.el.PropertyNotFoundException e) {
    throw new javax.faces.el.PropertyNotFoundException(e);
  } catch (ELException e) {
    throw new EvaluationException(e);
  }
  
}

代码示例来源:origin: org.apache.myfaces/com.springsource.org.apache.myfaces

public Class getType(Object base, int index) 
  throws EvaluationException, PropertyNotFoundException {
  
  try {
    return elResolver.getType(elContext(), base, new Integer(index));
  } catch (javax.el.PropertyNotFoundException e) {
    throw new javax.faces.el.PropertyNotFoundException(e);
  } catch (ELException e) {
    throw new EvaluationException(e);
  }
}

代码示例来源:origin: org.richfaces.ui/richfaces-components-ui

@Override
public void setValue(FacesContext context, Object value) throws EvaluationException {
  try {
    expression.setValue(context.getELContext(), value);
  } catch (javax.el.PropertyNotFoundException e) {
    throw new PropertyNotFoundException(e);
  } catch (ELException e) {
    throw new EvaluationException(e);
  }
}

代码示例来源:origin: org.apache.myfaces/com.springsource.org.apache.myfaces

public Class getType(Object base, Object property) 
  throws EvaluationException, PropertyNotFoundException {
  
  try {
    return elResolver.getType(elContext(), base, property);
  } catch (javax.el.PropertyNotFoundException e) {
    throw new javax.faces.el.PropertyNotFoundException(e);
  } catch (ELException e) {
    throw new EvaluationException(e);
  }
}

代码示例来源:origin: org.richfaces.ui/richfaces-components-ui

@Override
public boolean isReadOnly(FacesContext context) throws EvaluationException {
  try {
    return expression.isReadOnly(context.getELContext());
  } catch (javax.el.PropertyNotFoundException e) {
    throw new PropertyNotFoundException(e);
  } catch (ELException e) {
    throw new EvaluationException(e);
  }
}

代码示例来源:origin: com.sun.faces/jsf-impl

public Object getValue(FacesContext context) throws EvaluationException,
    PropertyNotFoundException {
  ELContext ctx = context.getELContext();
  try {
    return this.delegate.getValue(ctx);
  } catch (javax.el.PropertyNotFoundException e) {
    throw new PropertyNotFoundException(e.getMessage(), e.getCause());
  } catch (ELException e) {
    throw new EvaluationException(e.getMessage(), e.getCause());
  }
}

代码示例来源:origin: com.sun.facelets/jsf-facelets

public Object getValue(FacesContext context) throws EvaluationException,
    PropertyNotFoundException {
  ELContext ctx = ELAdaptor.getELContext(context);
  try {
    return this.delegate.getValue(ctx);
  } catch (javax.el.PropertyNotFoundException e) {
    throw new PropertyNotFoundException(e.getMessage(), e.getCause());
  } catch (ELException e) {
    throw new EvaluationException(e.getMessage(), e.getCause());
  }
}

代码示例来源:origin: org.glassfish/javax.faces

@Override
public Object getValue(FacesContext context) throws EvaluationException,
    PropertyNotFoundException {
  ELContext ctx = context.getELContext();
  try {
    return this.delegate.getValue(ctx);
  } catch (javax.el.PropertyNotFoundException e) {
    throw new PropertyNotFoundException(e.getMessage(), e.getCause());
  } catch (ELException e) {
    throw new EvaluationException(e.getMessage(), e.getCause());
  }
}

代码示例来源:origin: org.glassfish/jakarta.faces

@Override
public Object getValue(FacesContext context) throws EvaluationException,
    PropertyNotFoundException {
  ELContext ctx = context.getELContext();
  try {
    return this.delegate.getValue(ctx);
  } catch (javax.el.PropertyNotFoundException e) {
    throw new PropertyNotFoundException(e.getMessage(), e.getCause());
  } catch (ELException e) {
    throw new EvaluationException(e.getMessage(), e.getCause());
  }
}

代码示例来源:origin: com.sun.faces/jsf-impl

public boolean isReadOnly(FacesContext context) throws EvaluationException,
    PropertyNotFoundException {
  ELContext ctx = context.getELContext();
  try {
    return this.delegate.isReadOnly(ctx);
  } catch (javax.el.PropertyNotFoundException e) {
    throw new PropertyNotFoundException(e.getMessage(), e.getCause());
  } catch (ELException e) {
    throw new EvaluationException(e.getMessage(), e.getCause());
  }
}

代码示例来源:origin: com.sun.faces/jsf-impl

public Class getType(FacesContext context) throws EvaluationException,
    PropertyNotFoundException {
  ELContext ctx = context.getELContext();
  try {
    return this.delegate.getType(ctx);
  } catch (javax.el.PropertyNotFoundException e) {
    throw new PropertyNotFoundException(e.getMessage(), e.getCause());
  } catch (ELException e) {
    throw new EvaluationException(e.getMessage(), e.getCause());
  }
}

代码示例来源:origin: com.sun.facelets/jsf-facelets

public Class getType(FacesContext context) throws EvaluationException,
    PropertyNotFoundException {
  ELContext ctx = ELAdaptor.getELContext(context);
  try {
    return this.delegate.getType(ctx);
  } catch (javax.el.PropertyNotFoundException e) {
    throw new PropertyNotFoundException(e.getMessage(), e.getCause());
  } catch (ELException e) {
    throw new EvaluationException(e.getMessage(), e.getCause());
  }
}

代码示例来源:origin: org.glassfish/javax.faces

@Override
public boolean isReadOnly(FacesContext context) throws EvaluationException,
    PropertyNotFoundException {
  ELContext ctx = context.getELContext();
  try {
    return this.delegate.isReadOnly(ctx);
  } catch (javax.el.PropertyNotFoundException e) {
    throw new PropertyNotFoundException(e.getMessage(), e.getCause());
  } catch (ELException e) {
    throw new EvaluationException(e.getMessage(), e.getCause());
  }
}

代码示例来源:origin: com.sun.facelets/jsf-facelets

public boolean isReadOnly(FacesContext context) throws EvaluationException,
    PropertyNotFoundException {
  ELContext ctx = ELAdaptor.getELContext(context);
  try {
    return this.delegate.isReadOnly(ctx);
  } catch (javax.el.PropertyNotFoundException e) {
    throw new PropertyNotFoundException(e.getMessage(), e.getCause());
  } catch (ELException e) {
    throw new EvaluationException(e.getMessage(), e.getCause());
  }
}

代码示例来源:origin: org.glassfish/javax.faces

@Override
public Class getType(FacesContext context) throws EvaluationException,
    PropertyNotFoundException {
  ELContext ctx = context.getELContext();
  try {
    return this.delegate.getType(ctx);
  } catch (javax.el.PropertyNotFoundException e) {
    throw new PropertyNotFoundException(e.getMessage(), e.getCause());
  } catch (ELException e) {
    throw new EvaluationException(e.getMessage(), e.getCause());
  }
}

代码示例来源:origin: org.glassfish/jakarta.faces

@Override
public boolean isReadOnly(FacesContext context) throws EvaluationException,
    PropertyNotFoundException {
  ELContext ctx = context.getELContext();
  try {
    return this.delegate.isReadOnly(ctx);
  } catch (javax.el.PropertyNotFoundException e) {
    throw new PropertyNotFoundException(e.getMessage(), e.getCause());
  } catch (ELException e) {
    throw new EvaluationException(e.getMessage(), e.getCause());
  }
}

代码示例来源:origin: org.glassfish/jakarta.faces

@Override
public Class getType(FacesContext context) throws EvaluationException,
    PropertyNotFoundException {
  ELContext ctx = context.getELContext();
  try {
    return this.delegate.getType(ctx);
  } catch (javax.el.PropertyNotFoundException e) {
    throw new PropertyNotFoundException(e.getMessage(), e.getCause());
  } catch (ELException e) {
    throw new EvaluationException(e.getMessage(), e.getCause());
  }
}

代码示例来源:origin: org.glassfish/javax.faces

@Override
public void setValue(FacesContext context, Object value)
    throws EvaluationException, PropertyNotFoundException {
  ELContext ctx = context.getELContext();
  try {
    this.delegate.setValue(ctx, value);
  } catch (PropertyNotWritableException | javax.el.PropertyNotFoundException e) {
    throw new PropertyNotFoundException(e.getMessage(), e.getCause());
  } catch (ELException e) {
    throw new EvaluationException(e.getMessage(), e.getCause());
  }
}

相关文章