Examples of PropertyException


Examples of org.apache.cayenne.reflect.PropertyException

    protected ValueHolder createCollectionValueHolder(Object object)
            throws PropertyException {

        if (!(object instanceof Persistent)) {

            throw new PropertyException(
                    "ValueHolders for non-persistent objects are not supported.",
                    this,
                    object);
        }
View Full Code Here

Examples of org.apache.fop.fo.expr.PropertyException

                if (loc != null && loc.getLineNumber() != -1) {
                    errorMessage.append(" (line #")
                        .append(loc.getLineNumber()).append(", column #")
                        .append(loc.getColumnNumber()).append(")");
                }
                throw new PropertyException(errorMessage.toString());
            }
        }
       
        return p;
    }
View Full Code Here

Examples of org.apache.fop.fo.expr.PropertyException

            }
            if (newProp != null) {
                newProp = convertProperty(newProp, propertyList, fo);
            }
            if (newProp == null) {
                throw new PropertyException("No conversion defined " + pvalue);
            }
            return newProp;
        } catch (PropertyException propEx) {
            propEx.setLocator(fo.getLocator());
            propEx.setPropertyName(getName());
View Full Code Here

Examples of org.apache.isis.viewer.scimpi.dispatcher.action.PropertyException

        if (start == -1) {
            return value;
        } else {
            final int end = value.indexOf('}');
            if (end == -1) {
                throw new PropertyException("No closing brace in " + value.substring(start));
            } else if (end < start) {
                throw new PropertyException("Closing brace before opening brace in " + value.substring(end));
            }
            final String name = value.substring(start + 2, end);
            if (name != null) {
                final int pos = name.indexOf(":");
                final String variableName = pos == -1 ? name : name.substring(0, pos);
                final String qualifier = pos == -1 ? "none" : name.substring(pos);
                Object replacementValue;
                final boolean embed = qualifier.indexOf("embed") > -1;
                if (embed) {
                    replacementValue = "${" + variableName + "}";
                } else {
                    replacementValue = getParameter(variableName);
                    if (replacementValue == null) {
                        replacementValue = getVariable(variableName);
                    }
                    if (replacementValue == null) {
                        replacementValue = getBuiltIn(variableName);
                    }

                    if (replacementValue == null) {
                        final boolean ensureExists = qualifier.indexOf("optional") == -1;
                        if (ensureExists) {
                            throw new PropertyException("No value for the variable " + value.substring(start, end + 1));
                        } else {
                            replacementValue = "";
                        }
                    }
                }
                final boolean repeat = qualifier.indexOf("repeat") > -1;
                if (repeat) {
                    value = value.substring(0, start) + replacementValue + value.substring(end + 1);
                    return replaceVariables(value);
                } else {
                    final String remainder = replaceVariables(value.substring(end + 1));
                    value = value.substring(0, start) + replacementValue + remainder;
                    return value;
                }

            } else {
                throw new PropertyException("No variable name speceified");
            }
        }
    }
View Full Code Here

Examples of org.foray.fotree.PropertyException

        }
        if (this.permitsPercentages) {
            if (pv.canEvalPercentage()) {
                return;
            } else {
                throw new PropertyException("Length-range value must evaluate "
                        + "to a length or a percentage");
            }
        }
        throw new PropertyException("Minimum value must evaluate to a length.");
    }
View Full Code Here

Examples of org.krysalis.jcharts.properties.PropertyException

    if( axisProperties.isPlotHorizontal() )
    {
      //---if there is only one data set, there is no need to do any validations.
      if( this.iAxisDataSeries.size() > 1 )
      {
        throw new PropertyException( "You can not have a combo chart on a horizontal plot." );
      }

      if( !this.allowHorizontalPlot() )
      {
        throw new PropertyException( "Horizontal plots are only supported in the Bar, Stacked Bar, and Clustered Bar Chart Types." );
      }
    }
  }
View Full Code Here

Examples of org.nasutekds.server.admin.PropertyException

  // Create a property using the provided string values.
  private <PD> void decodeProperty(PropertySet newProperties,
      ManagedObjectPath<?, ?> p, PropertyDefinition<PD> pd,
      Attribute attribute) throws PropertyException,
      NamingException {
    PropertyException exception = null;

    // Get the property's active values.
    SortedSet<PD> activeValues = new TreeSet<PD>(pd);
    if (attribute != null) {
      NamingEnumeration<?> ldapValues = attribute.getAll();
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.