Examples of InvalidObservation


Examples of org.aavso.tools.vstar.data.InvalidObservation

        } catch (Exception e) {
          // Create an invalid observation.
          // Record the line number rather than observation number for
          // error reporting purposes, but still increment the latter.
          String error = e.getLocalizedMessage();
          InvalidObservation ob = new InvalidObservation(line, error);
          ob.setRecordNumber(lineNum);
          obNum++;
          addInvalidObservation(ob);
        }
      } while (line != null);
    }
View Full Code Here

Examples of org.aavso.tools.vstar.data.InvalidObservation

            ValidObservation validOb = validator.validate();
            if (validOb != null) {
              addValidObservation(validOb, lineNum);
            }
          } catch (ObservationValidationError e) {
            InvalidObservation invalidOb = new InvalidObservation(
                validator.getRawRecord(), e.getMessage());
            invalidOb.setRecordNumber(lineNum);
            addInvalidObservation(invalidOb);
          } catch (ObservationValidationWarning e) {
            InvalidObservation invalidOb = new InvalidObservation(
                validator.getRawRecord(), e.getMessage(), true);
            invalidOb.setRecordNumber(lineNum);
            addInvalidObservation(invalidOb);

            addValidObservation(e.getObservation(), lineNum);
          }
        }
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.