Examples of ParseException


Examples of com.google.gwt.core.ext.typeinfo.ParseException

    }

    if (type.endsWith(">")) {
      int bracket = type.indexOf('<');
      if (bracket == -1) {
        throw new ParseException("Mismatched brackets; expected '<' to match subsequent '>'");
      }

      // Resolve the raw type.
      //
      String rawTypeName = type.substring(0, bracket);
View Full Code Here

Examples of com.google.java.contract.core.util.JavaUtils.ParseException

            break;
        }
      }
      parsed = true;
    } catch (NoSuchElementException e) {
      throw new ParseException(e);
    }
  }
View Full Code Here

Examples of com.google.protobuf.TextFormat.ParseException

      try{
        Query q = qparser.parse(query);
        breq.setQuery(q);
      }
      catch(Exception e){
        throw new ParseException(e.getMessage());
      }
    }
    breq.setOffset(req.getOffset());
    breq.setCount(req.getCount());
   
View Full Code Here

Examples of com.google.streamhtmlparser.ParseException

            String.format("Unexpected character '%s' in int_state '%s' " +
                          "(ext_state '%s')",
                          HtmlUtils.encodeCharForAscii(input),
                          currentState.getName(), getState().getName());
      currentState = InternalState.INTERNAL_ERROR_STATE;
      throw new ParseException(this, errorMsg);
    }

    if (currentState != nextState) {
      nextState = handleExitState(currentState, nextState, input);
    }
View Full Code Here

Examples of com.heroku.api.exception.ParseException

        mapper.configure(DeserializationConfig.Feature.FAIL_ON_UNKNOWN_PROPERTIES, false);
        JavaType javaType = TypeFactory.type(type);
        try {
            return mapper.readValue(data, 0, data.length, javaType);
        } catch (IOException e) {
            throw new ParseException("Unable to parse data.", e);
        }
    }
View Full Code Here

Examples of com.hp.hpl.jena.rdf.arp.ParseException

            warning(taintMe,id, location(), msg);
    }

    void warning(Taint taintMe, int id, ARPLocation loc, String msg) throws SAXParseException {
        if (options.getErrorMode(id) != EM_IGNORE)
            warning(taintMe, id, new ParseException(id, loc, msg) {
                private static final long serialVersionUID = 1990910846204964756L;
            });
    }
View Full Code Here

Examples of com.martiansoftware.jsap.ParseException

        } else {
          try {
            format = new SimpleDateFormat(formatString);
          }
          catch( RuntimeException e ) {
            throw new ParseException( e );
          }
        }
    }
View Full Code Here

Examples of com.meidusa.amoeba.sqljep.ParseException

      Comparable<?>  param1 = runtime.stack.pop();
      return new Comparable<?>[]{param1,param2};
    } else {
      // remove all parameters from stack and push null
      removeParams(runtime.stack, num);
      throw new ParseException(PARAMS_NUMBER+" for trunc");
    }
  }
View Full Code Here

Examples of com.nimbusds.oauth2.sdk.ParseException

    } else {
      String[] audList = JSONObjectUtils.getStringArray(jsonObject, "aud");

      if (audList.length > 1)
        throw new ParseException("Multiple audiences (aud) not supported");

      aud = new Audience(audList[0]);
    }

    Date exp = DateUtils.fromSecondsSinceEpoch(JSONObjectUtils.getLong(jsonObject, "exp"));


    // Parse optional claims

    Date nbf = null;

    if (jsonObject.containsKey("nbf"))
      nbf = DateUtils.fromSecondsSinceEpoch(JSONObjectUtils.getLong(jsonObject, "nbf"));

    Date iat = null;

    if (jsonObject.containsKey("iat"))
      iat = DateUtils.fromSecondsSinceEpoch(JSONObjectUtils.getLong(jsonObject, "iat"));

    JWTID jti = null;

    if (jsonObject.containsKey("jti"))
      jti = new JWTID(JSONObjectUtils.getString(jsonObject, "jti"));


    // Check client ID

    if (! iss.getValue().equals(sub.getValue()))
      throw new ParseException("JWT issuer and subject must have the same client ID");

    ClientID clientID = new ClientID(iss.getValue());

    return new JWTAuthenticationClaimsSet(clientID, aud, exp, nbf, iat, jti);
  }
View Full Code Here

Examples of com.rimfaxe.xml.xmlreader.ParseException

                        break;
                }
            }  
           
            if (result[0] == null)
                throw new ParseException("Error processing tag " + fullName +
                                         ". No namespace mapping found.");
           
            depth_ = 0;
            currNS_ = result[0];
            currPrefix_ = prefix;
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.