Examples of wasError()


Examples of com.adactus.mpeg21.xml.schema.ValidatingDocumentSource.wasError()

    if(encoding == null) {
      v.validate(new SAXSource(new InputSource(new ByteArrayInputStream(xml))) );
    } else {
      v.validate(new SAXSource(new InputSource(new InputStreamReader(new ByteArrayInputStream(xml), encoding))) );
    }
    assertTrue(!validatingDocumentSource.wasError());
    assertTrue(!validatingDocumentSource.wasFatalError());
    assertTrue(!validatingDocumentSource.wasWaring());
  }

 
View Full Code Here

Examples of com.atlauncher.data.APIResponse.wasError()

            request.put("issue", new GithubIssue(title, body));

            try {
                APIResponse response = Settings.gson.fromJson(Utils.sendAPICall("githubissue/", request),
                        APIResponse.class);
                if (!response.wasError() && response.getDataAsInt() != 0) {
                    LogManager.info("Exception reported to GitHub. Track/comment on the issue at " + response
                            .getDataAsString());
                }
            } catch (IOException e) {
                e.printStackTrace();
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.