Examples of PropertyException


Examples of com.opensymphony.module.propertyset.PropertyException

        logger.debug("PropertysetHelper.setData(\"" + key + "\",\"" + value + "\")");
        setData(key, value.getBytes(UTF8_ENCODING));
      }
      catch(UnsupportedEncodingException e)
      {
        throw new PropertyException("Unable to set data for [" + key + "].");
      }
    }
   
  }
View Full Code Here

Examples of edu.cmu.sphinx.util.props.PropertyException

     * edu.cmu.sphinx.util.props.Configurable#newProperties(edu.cmu.sphinx.
     * util.props.PropertySheet)
     */
    public void newProperties(PropertySheet ps) throws PropertyException {
        if (allocated) {
            throw new PropertyException(
                                        ClassBasedLanguageModel.class.getName(),
                                        null,
                                        "Can't change properties after allocation");
        }
        classMap = (ClassMap) ps.getComponent(PROP_CLASS_MAP);
View Full Code Here

Examples of fr.norsys.mapper.console.exception.PropertyException

  public void clean(String pathFile) throws PropertyException {
    PrintWriter writer;
    try {
      writer = new PrintWriter(new FileWriter(pathFile));
    } catch (IOException e) {
      throw new PropertyException(e.toString());
    }
    writer.print("");
    writer.close();
  }
View Full Code Here

Examples of javax.xml.bind.PropertyException

    else if ("jaxb.fragment".equals(name)) {
      // XXX
      return null;
    }
    else
      throw new PropertyException(name);
  }
View Full Code Here

Examples of javax.xml.bind.PropertyException

    else if ("jaxb.formatted.output".equals(name)) { /* XXX */ }
    else if ("jaxb.schemaLocation".equals(name)) { /* XXX */ }
    else if ("jaxb.noNamespaceSchemaLocation".equals(name)) { /* XXX */ }
    else if ("jaxb.fragment".equals(name)) { /* XXX */ }
    else
      throw new PropertyException(name);
  }
View Full Code Here

Examples of javax.xml.bind.PropertyException

  public void setProperties(Properties p) {
    String dialect = ""; // 数据库方言
    dialect = p.getProperty("dialect");
    if (Common.isEmpty(dialect)) {
      try {
        throw new PropertyException("dialect property is not found!");
      } catch (PropertyException e) {
        e.printStackTrace();
      }
    } else {
      try {
        dialectObject = (Dialect) Class.forName(dialect)
            .getDeclaredConstructor().newInstance();
      } catch (Exception e) {
        throw new RuntimeException(dialect + ", init fail!\n" + e);
      }
    }
    pageSqlId = p.getProperty("pageSqlId");//根据id来区分是否需要分页
    if (Common.isEmpty(pageSqlId)) {
      try {
        throw new PropertyException("pageSqlId property is not found!");
      } catch (PropertyException e) {
        e.printStackTrace();
      }
    }
  }
View Full Code Here

Examples of javax.xml.bind.PropertyException

        if( name == null ) {
            throw new IllegalArgumentException(
                Messages.format( Messages.MUST_NOT_BE_NULL, "name" ) );
        }

        throw new PropertyException(name, value);
    }
View Full Code Here

Examples of javax.xml.bind.PropertyException

        if( name == null ) {
            throw new IllegalArgumentException(
                Messages.format( Messages.MUST_NOT_BE_NULL, "name" ) );
        }

        throw new PropertyException(name);
    }
View Full Code Here

Examples of javax.xml.bind.PropertyException

     * providers may have support for properties on Validator, but the RI doesn't
     */
    public void setProperty( String name, Object value )
        throws PropertyException {
       
        throw new PropertyException(name, value);
    }
View Full Code Here

Examples of javax.xml.bind.PropertyException

     * providers may have support for properties on Validator, but the RI doesn't
     */
    public Object getProperty( String name )
        throws PropertyException {
           
        throw new PropertyException(name);
    }
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.