Examples of errorMessage()


Examples of au.edu.mq.comp.junitGrading.TestResult.errorMessage()

        catch(Exception e)
        {           
            runResult.appendResult("RunResult", "ExceptionThrown");
            runResult.setErrorMessage("exception raised -->" + e.toString());
           
            Log.error(runResult.errorMessage());
            e.printStackTrace();
        }
        try
        {
          SimpleFileIO.writeStringToTextFile(runResult.toString(), assignment.containerDirectory().getAbsolutePath() + File.separator + "runResult.txt");
View Full Code Here

Examples of com.hp.hpl.jena.rdf.arp.lang.LanguageTag.errorMessage()

            return;
        try {
            LanguageTag tag = new LanguageTag(newLang);
            int tagType = tag.tagType();
            if (tagType == LT_ILLEGAL) {
                arp.warning(taintMe, WARN_BAD_XMLLANG, tag.errorMessage());
            }
            if ((tagType & LT_UNDETERMINED) == LT_UNDETERMINED) {
                arp
                        .warning(taintMe, WARN_BAD_XMLLANG,
                                "Unnecessary use of language tag \"und\" prohibited by RFC3066");
View Full Code Here

Examples of com.hp.hpl.jena.rdf.arp.lang.LanguageTag.errorMessage()

            return;
        try {
            LanguageTag tag = new LanguageTag(newLang);
            int tagType = tag.tagType();
            if (tagType == LT_ILLEGAL) {
                arp.warning(taintMe, WARN_BAD_XMLLANG, tag.errorMessage());
            }
            if ((tagType & LT_UNDETERMINED) == LT_UNDETERMINED) {
                arp
                        .warning(taintMe, WARN_BAD_XMLLANG,
                                "Unnecessary use of language tag \"und\" prohibited by RFC3066");
View Full Code Here

Examples of com.knowgate.sms.SMSResponse.errorMessage()

    oStm.setString(7, oAtm.getString(DB.gu_company));
    oStm.setString(8, getParameter("txt"));
    if (oRsp.errorCode()==SMSResponse.ErrorCode.NONE)
      oStm.setNull(9, Types.VARCHAR);
    else
      oStm.setString(9, Gadgets.left(oRsp.errorMessage(),254));
    oStm.executeUpdate();
    oStm.close();
    oCon.close("SMSSender");

    if (DebugFile.trace) {
View Full Code Here

Examples of com.linkedin.data.schema.SchemaParser.errorMessage()

    SchemaParser parser = new SchemaParser();
    parser.getValidationOptions().setAvroUnionMode(isAvroUnionMode);
    parser.parse(TestUtil.inputStreamFromString(s));
    if (parser.hasError())
    {
      TestUtil.out.println("ERROR: " + parser.errorMessage());
      return null;
    }
    return (NamedDataSchema) parser.topLevelDataSchemas().get(parser.topLevelDataSchemas().size() - 1);
  }
View Full Code Here

Examples of com.linkedin.data.schema.SchemaParser.errorMessage()

        assertEquals(filteredSchema.toString(), expectedSchema.toString());
        assertEquals(filteredSchema, expectedSchema);
      }
      else
      {
        String parserMessage = parser.errorMessage();
        assertTrue(parserMessage.contains(expected), "\nContains :" + expected + "\nActual   :" + parserMessage);
      }
    }
  }
}
View Full Code Here

Examples of com.linkedin.data.schema.SchemaParser.errorMessage()

    {
      schemaStream.close();
      if (parser.hasError())
      {
        getMessage().append(schemaSourceFile.getPath() + ",");
        getMessage().append(parser.errorMessage());
      }
    }
  }

  /**
 
View Full Code Here

Examples of com.linkedin.data.schema.SchemaParser.errorMessage()

    SchemaParser parser = SchemaParserFactory.instance().create(null);
    parser.getValidationOptions().setAvroUnionMode(true);
    parser.parse(avroSchemaInJson);
    if (parser.hasError())
    {
      throw new IllegalArgumentException(parser.errorMessage());
    }
    assert(parser.topLevelDataSchemas().size() == 1);
    DataSchema dataSchema = parser.topLevelDataSchemas().get(0);
    DataSchema resultDataSchema = null;
View Full Code Here

Examples of com.linkedin.data.schema.SchemaParser.errorMessage()

        {
          SchemaParser embeddedSchemaParser = SchemaParserFactory.instance().create(null);
          embeddedSchemaParser.parse(Arrays.asList(schemaProperty));
          if (embeddedSchemaParser.hasError())
          {
            throw new IllegalArgumentException("Embedded schema is invalid\n" + embeddedSchemaParser.errorMessage());
          }
          assert(embeddedSchemaParser.topLevelDataSchemas().size() == 1);
          resultDataSchema = embeddedSchemaParser.topLevelDataSchemas().get(0);

          if (translationMode == AvroToDataSchemaTranslationMode.VERIFY_EMBEDDED_SCHEMA)
View Full Code Here

Examples of com.linkedin.data.schema.SchemaParser.errorMessage()

        .replace("##ANYRECORD_FULL_JSON", ANYRECORD_AVRO_SCHEMA_JSON)
        .replace("##ANYRECORD_NAME", ANYRECORD_AVRO_FULL_NAME);
    String fullAvroSchemaJson = AVRO_SCHEMA_JSON_TEMPLATE.replace("##FIELDS", avroSchemaFieldsJsonAfterVariableExpansion);

    SchemaParser parser = TestUtil.schemaParserFromString(fullSchemaJson);
    assertFalse(parser.hasError(), parser.errorMessage());
    RecordDataSchema schema = (RecordDataSchema) parser.topLevelDataSchemas().get(2);

    String avroJsonOutput = SchemaTranslator.dataToAvroSchemaJson(schema);
    assertEquals(TestUtil.dataMapFromString(avroJsonOutput), TestUtil.dataMapFromString(fullAvroSchemaJson));
    Schema avroSchema = Schema.parse(avroJsonOutput);
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.