Examples of ParseException


Examples of org.jwall.web.audit.io.ParseException

    String token = readNonNumeric( str );
    Long unit = this.guessUnit( token );
    if( unit > 0 )
      return unit;
   
    throw new ParseException( "No valid time-unit found at '" + str.substring( start ) + "'!");
  }
View Full Code Here

Examples of org.lilypondbeans.jccparser.ParseException

            List<ParseException> syntaxErrors = sjResult.getJavaParser().syntaxErrors;
            Document document = result.getSnapshot().getSource().getDocument(false);
            List<ErrorDescription> errors = new ArrayList<ErrorDescription>();
            for (int px = 0; px < syntaxErrors.size(); px++) {
                ParseException syntaxError = syntaxErrors.get(px);
                Logger logger = Logger.getLogger(SyntaxErrorsHighlightingTask.class.getName());

              //  Exceptions.printStackTrace(syntaxError);

                Token token = syntaxError.currentToken;
                String msg = syntaxError.getMessage();
                boolean isHint = false;
                if (syntaxError instanceof ReparseException) {
                    ReparseException pex = (ReparseException) syntaxError;
                    pex = pex.expandIncludedFile();
                    isHint = pex.isHint;
View Full Code Here

Examples of org.lilystudio.smarty4j.ParseException

      for (int i = 0; i < len; i++) {
        try {
          parameters[i] = definitions[i]
              .getExpression(i < values.size() ? values.get(i) : null);
        } catch (ParseException e) {
          throw new ParseException("第" + i + "个参数" + e.getMessage());
        }
      }

      setParameters(parameters);
    }
View Full Code Here

Examples of org.netbeans.modules.parsing.spi.ParseException

        }

        public PL_SQLParser getPL_SQLParser()
                throws ParseException {
            if (!valid) {
                throw new ParseException();
            }
            return parser;
        }
View Full Code Here

Examples of org.ofbiz.base.json.ParseException

            }
        }
    }

    protected void doWhitespaceExceptionTest(String s, int column) {
        ParseException caught = null;
        try {
            new JSON(new StringReader(s)).JSONValue();
        } catch (ParseException e) {
            caught = e;
        } finally {
View Full Code Here

Examples of org.openntf.formula.parse.ParseException

        return parseFocFormula();
      } else {
        return parseFormula();
      }
    } catch (TokenMgrError e) {
      throw new ParseException(e.getMessage(), e);
    } finally {
      parsing = false;
    }
  }
View Full Code Here

Examples of org.openstreetmap.josm.gui.mappaint.mapcss.parsergen.ParseException

            Main.error(e);
            logError(e);
        } catch (ParseException e) {
            Main.warn(tr("Failed to parse Mappaint styles from ''{0}''. Error was: {1}", url, e.getMessage()));
            Main.error(e);
            logError(new ParseException(e.getMessage())); // allow e to be garbage collected, it links to the entire token stream
        }
        // optimization: filter rules for different primitive types
        for (MapCSSRule r: rules) {
            // find the rightmost selector, this must be a GeneralSelector
            Selector selRightmost = r.selector;
View Full Code Here

Examples of org.parse4j.ParseException

    int statusCode = httpResponse.getStatusLine().getStatusCode();
    return (statusCode < 200 || statusCode >= 300);
  }

  static ParseException getConnectionFailedException(String message) {
    return new ParseException(ParseException.CONNECTION_FAILED,
        "Connection failed with Parse servers.  Log: " + message);
  }
View Full Code Here

Examples of org.pdfsam.console.exceptions.console.ParseException

        CmdLineHandler cmdLineHandler = cmdHandler.getCommandLineHandler();
        log.debug("Starting arguments parsing.");
        if (cmdLineHandler != null) {
          retVal = cmdLineHandler.parse(inputArguments);
          if (!retVal) {
            throw new ParseException(ParseException.ERR_PARSE, new String[] { cmdLineHandler.getParseError() });
          }
        } else {
          throw new ConsoleException(ConsoleException.CMD_LINE_HANDLER_NULL);
        }
      } else {
View Full Code Here

Examples of org.pentaho.reporting.libraries.formula.parser.ParseException

      throw new NullPointerException();
    }
    final String formulaExpression = extractFormula(formula);
    if (formulaExpression == null)
    {
      throw new ParseException("Formula is invalid");
    }
    return getReferences(new Formula(formulaExpression));
  }
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.