Examples of ElException


Examples of javax.el.ELException

    if (propertyList == null) {
      propertyList = Lists.newArrayList();
      context.putContext(MessageELResolver.class, propertyList);
    } else {
      if (propertyList.contains(property)) {
        throw new ELException("Recursive invocation of message bundle properties");
      }
    }
   
    propertyList.add(property);
    return propertyList;
View Full Code Here

Examples of javax.el.ELException

            String val = txt.toString(elContext);
            if (val != null && val.length() != 0) {
                out.writeAttribute(attr, val, null);
            }
        } catch (ELException e) {
            throw new ELException(this.alias + ": " + e.getMessage(), e.getCause());
        } catch (Exception e) {
            throw new ELException(this.alias + ": " + e.getMessage(), e);
        }
    }
View Full Code Here

Examples of javax.servlet.jsp.el.ELException

      } catch (PrivilegedActionException ex) {
        Exception realEx = ex.getException();
        if (realEx instanceof ELException) {
          throw (ELException) realEx;
        } else {
          throw new ELException(realEx);
        }
      }
    } else {
            ELContextImpl ctx = (ELContextImpl) pageContext.getELContext();
            ctx.setFunctionMapper(new FunctionMapperImpl(functionMap));
View Full Code Here

Examples of javax.servlet.jsp.el.ELException

      } catch (PrivilegedActionException ex) {
        Exception realEx = ex.getException();
        if (realEx instanceof ELException) {
          throw (ELException) realEx;
        } else {
          throw new ELException(realEx);
        }
      }
    } else {
            ELContextImpl ctx = (ELContextImpl) pageContext.getELContext();
            ctx.setFunctionMapper(new FunctionMapperImpl(functionMap));
View Full Code Here

Examples of javax.servlet.jsp.el.ELException

            } catch (PrivilegedActionException ex) {
                Exception realEx = ex.getException();
                if (realEx instanceof ELException) {
                    throw (ELException) realEx;
                } else {
                    throw new ELException(realEx);
                }
            }
        } else {
            ELContextImpl ctx = (ELContextImpl) pageContext.getELContext();
            ctx.setFunctionMapper(new FunctionMapperImpl(functionMap));
View Full Code Here

Examples of org.activiti.engine.impl.javax.el.ELException

   */
  public Bindings bind(FunctionMapper fnMapper, VariableMapper varMapper, TypeConverter converter) {
    Method[] methods = null;
    if (!functions.isEmpty()) {
      if (fnMapper == null) {
        throw new ELException(LocalMessages.get("error.function.nomapper"));
      }
      methods = new Method[functions.size()];
      for (FunctionNode node: functions) {
        String image = node.getName();
        Method method = null;
        int colon = image.indexOf(':');
        if (colon < 0) {
          method = fnMapper.resolveFunction("", image);
        } else {
          method = fnMapper.resolveFunction(image.substring(0, colon), image.substring(colon + 1));
        }
        if (method == null) {
          throw new ELException(LocalMessages.get("error.function.notfound", image));
        }
        if (node.isVarArgs() && method.isVarArgs()) {
          if (method.getParameterTypes().length > node.getParamCount() + 1) {
            throw new ELException(LocalMessages.get("error.function.params", image));
          }
        } else {
          if (method.getParameterTypes().length != node.getParamCount()) {
            throw new ELException(LocalMessages.get("error.function.params", image));
          }
        }
        methods[node.getIndex()] = method;
      }
    }
View Full Code Here

Examples of org.camunda.bpm.engine.impl.javax.el.ELException

  public boolean isReadOnly(Bindings bindings, ELContext context) {
    return true;
  }

  public void setValue(Bindings bindings, ELContext context, Object value) {
    throw new ELException(LocalMessages.get("error.value.set.rvalue", getStructuralId(bindings)));
  }
View Full Code Here

Examples of org.jbpm.jpdl.el.ELException

                    exceptions.add(e);
                }
               
                if (exceptions.size() == 1)
                {
                   throw new ELException("Error evaluating " + expression, exceptions.get(0));
                }
                else if (exceptions.size() > 1)
                {
                   log.error("Exceptions occurred when parsing " + expression);
                   for (javax.el.ELException e : exceptions)
                   {
                      log.error("Possible cause", e);
                   }
                }
                if (me == null && ve ==  null)
                {
                   log.error("Error parsing " + expression);
                   throw new ELException("Error parsing " + expression + "; not a valid EL expression");
                }
                throw new ELException("Error evaluating " + expression + "; possible causes are logged at debug level");
            }
        };
    }
View Full Code Here

Examples of org.nutz.el.ElException

      if(obj != null){
        skipSpace();
        return parseItem(obj);
      }
    }
    throw new ElException("无法解析!");
  }
View Full Code Here

Examples of org.nutz.el.ElException

      break;
    case 'f':
      sb.append('\f');//这个支持一下又何妨?
      break;
    default:
      throw new ElException("Unexpected char")//1.b.37及之前的版本,会忽略非法的转义字符
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.