/[v1]/trunk/c++/include/objtools/readers/line_error.hpp
ViewVC logotype

Log of /trunk/c++/include/objtools/readers/line_error.hpp

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (download) (as text) (annotate)
Sticky Revision:

Revision 100808 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Sep 14 15:36:59 2023 UTC (8 months, 1 week ago) by foleyjp
File length: 24827 byte(s)
Diff to previous 93579
JIRA: RW-2075 Added git patch

Revision 93579 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat May 1 20:54:52 2021 UTC (3 years ago) by stakhovv
File length: 24890 byte(s)
Diff to previous 92412
xobjread: remove trailing whitespace; JIRA:RW-1283

Revision 92412 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jan 19 13:43:23 2021 UTC (3 years, 4 months ago) by grichenk
File length: 24963 byte(s)
Diff to previous 88190
Replaced throw() with noexcept. JIRA CXX-11571

Revision 88190 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 18 14:28:28 2019 UTC (4 years, 6 months ago) by ludwigf
File length: 24960 byte(s)
Diff to previous 86664
In line_error, suppress line number display if there is no line number to report.

Revision 86664 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 4 12:39:24 2019 UTC (4 years, 11 months ago) by ludwigf
File length: 24924 byte(s)
Diff to previous 85748
JIRA: RW-621
If a GO term cannot be parsed then throw out the GO term but retain everything else in the feature.
For the feature table reader, generate a warning for every GO term thrown out.
In cleanup, faulty GO terms are thrown out silently, by workflow design.
In the GFF3 reader, faulty GO terms are thrown out silently due to current error reporting limitations.

Revision 85748 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 7 19:31:41 2019 UTC (5 years, 2 months ago) by foleyjp
File length: 24808 byte(s)
Diff to previous 85685
Use the override qualifier consistently in CLineErrorEx to prevent Clang from complaining

Revision 85685 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 4 13:45:53 2019 UTC (5 years, 2 months ago) by kornbluh
File length: 24719 byte(s)
Diff to previous 85597
added `override` to method to fix compiler warning.

Revision 85597 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Feb 25 17:41:21 2019 UTC (5 years, 2 months ago) by foleyjp
File length: 24710 byte(s)
Diff to previous 85568
JIRA: RW-807 ILineError now displays non-zero error codes

Revision 85568 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Feb 22 16:30:37 2019 UTC (5 years, 2 months ago) by foleyjp
File length: 24243 byte(s)
Diff to previous 83797
JIRA: RW-807 Added the CLineErrorEx class. Modifier errors and warnings now have an associated code and subcode

Revision 83797 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 19 18:06:07 2018 UTC (5 years, 8 months ago) by foleyjp
File length: 20636 byte(s)
Diff to previous 83687
JIRA: MSS-714 ILineError is now derived from IObjtoolsMessage and ILineErrorListener is derived from IObjtoolsListener. ILineErrorListener will now accept any message class derived from IObjtoolsMessage

Revision 83687 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 10 18:17:55 2018 UTC (5 years, 8 months ago) by foleyjp
File length: 20478 byte(s)
Diff to previous 83684
JIRA: MSS-714 Reverting previous changes until I've fixed bug

Revision 83684 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 10 17:23:48 2018 UTC (5 years, 8 months ago) by foleyjp
File length: 20682 byte(s)
Diff to previous 83100
JIRA: MSS-714 First attempt at generalising objtools error reporting

Revision 83100 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 26 15:31:56 2018 UTC (5 years, 9 months ago) by foleyjp
File length: 20478 byte(s)
Diff to previous 83013
JIRA: RW-626 Add check for empty Reference feature

Revision 83013 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 23 15:55:11 2018 UTC (5 years, 10 months ago) by foleyjp
File length: 20442 byte(s)
Diff to previous 81740
JIRA: GB-7784 Added check for duplicate transcript and protein ids

Revision 81740 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 29 17:45:43 2018 UTC (6 years, 1 month ago) by foleyjp
File length: 20411 byte(s)
Diff to previous 78954
JIRA: RW-451 Bug fixes

Revision 78954 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Aug 1 14:12:06 2017 UTC (6 years, 9 months ago) by foleyjp
File length: 20316 byte(s)
Diff to previous 68059
JIRA: GB-7160 Added warning for invalid qualifier

Revision 68059 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 7 16:07:55 2015 UTC (8 years, 10 months ago) by grichenk
File length: 20188 byte(s)
Diff to previous 66566
Added IMessage and ncbi::IMessageListener interfaces. JIRA CXX-4254

Revision 66566 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 12 13:24:13 2015 UTC (9 years, 2 months ago) by kornbluh
File length: 19712 byte(s)
Diff to previous 65790
line_error XML dump was giving invalid XML.  JIRA WGS-773

Revision 65790 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Dec 31 14:59:36 2014 UTC (9 years, 4 months ago) by kornbluh
File length: 19711 byte(s)
Diff to previous 61311
give feat table reader ability to report discouraged feats and quals. JIRA BI-1270

Revision 61311 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jan 10 13:51:01 2014 UTC (10 years, 4 months ago) by kornbluh
File length: 19627 byte(s)
Diff to previous 60128
THIS BREAKS BACKWARD COMPATIBILITY, but it looks to me like all files that
use this are ready for the change.

Deprecated constructors moved from public to protected and then undeprecated.

but possibly related to QA-17483

Revision 60128 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Oct 28 12:25:28 2013 UTC (10 years, 6 months ago) by kornbluh
File length: 20067 byte(s)
Diff to previous 59876
multireader now has an option to show errors as XML. JIRA SPCORE-210

Revision 59876 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 24 11:02:23 2013 UTC (10 years, 7 months ago) by kornbluh
File length: 18868 byte(s)
Diff to previous 59844
CObjReaderLineException::Message falls back on ILineError::Message if GetMsg is blank.  JIRA QA-17483

Revision 59844 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 20 16:41:28 2013 UTC (10 years, 8 months ago) by ludwigf
File length: 18822 byte(s)
Diff to previous 59821
For backward compatibility, default the last seven arguments in the CObjReaderLineException constructor.

Revision 59821 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Sep 19 15:46:29 2013 UTC (10 years, 8 months ago) by kornbluh
File length: 18713 byte(s)
Diff to previous 59743
ILineError cannot inherit from object because it breaks the CObject heap code. Also, creation funcs now take the "other lines" field into account. JIRA QA-17483

Revision 59743 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 16 16:21:04 2013 UTC (10 years, 8 months ago) by kornbluh
File length: 17988 byte(s)
Diff to previous 59741
put funcs with warnings in .cpp instead of .hpp to avoid having warnings in huge numbers of files.  JIRA QA-17483

Revision 59741 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 16 15:03:25 2013 UTC (10 years, 8 months ago) by kornbluh
File length: 18522 byte(s)
Diff to previous 59584
CMessageListenerBase now stores the actual ILineError instead of converting it to a CLineError, so that extra information in child classes can be retrieved.  Also, ILineError inherits from CObject now. JIRA QA-17483

Revision 59584 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Sep 5 14:34:25 2013 UTC (10 years, 8 months ago) by kornbluh
File length: 16933 byte(s)
Diff to previous 59538
* Give CFastaReader a flag for ignoring hyphens but warning.
* Remove CFastaReader's getter and setter for completely unknown gap length
* Force gaps of unknown length to have size 100
JIRA BI-105

Revision 59538 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 3 19:00:41 2013 UTC (10 years, 8 months ago) by kornbluh
File length: 16560 byte(s)
Diff to previous 59532
workaround for compiler bug. JIRA BI-105

Revision 59532 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 3 17:37:43 2013 UTC (10 years, 8 months ago) by kornbluh
File length: 16639 byte(s)
Diff to previous 59531
CFastaReader: some previously-thrown exceptions that are actually recoverable become mere warnings so that BankIt can accumulate them. JIRA BI-105

Revision 59531 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 3 15:58:44 2013 UTC (10 years, 8 months ago) by kornbluh
File length: 16639 byte(s)
Diff to previous 59530
added few more ILineError problems. JIRA BI-105

Revision 59530 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 3 15:57:36 2013 UTC (10 years, 8 months ago) by ludwigf
File length: 16224 byte(s)
Diff to previous 59015
JIRA: MSS-214
Add support for custom error messages to CLineError.

Revision 59015 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 23 13:17:08 2013 UTC (10 years, 10 months ago) by kornbluh
File length: 15249 byte(s)
Diff to previous 59008
Add PutProgress func to IMessageListener. JIRA SPCORE-210

Revision 59008 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 23 11:15:22 2013 UTC (10 years, 10 months ago) by kornbluh
File length: 15159 byte(s)
Diff to previous 58852
Rename IErrorContainer to IMessageListener. JIRA SPCORE-210

Revision 58852 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 15 11:38:23 2013 UTC (10 years, 10 months ago) by ludwigf
File length: 15167 byte(s)
Diff to previous 58770
JIRA: MSS-194
Convert VCF reader to use error containers for error processing.

Revision 58770 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 9 14:03:57 2013 UTC (10 years, 10 months ago) by kornbluh
File length: 14811 byte(s)
Diff to previous 58769
make Dump virtual in case descendents want to override it.

Revision 58769 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 9 14:00:17 2013 UTC (10 years, 10 months ago) by kornbluh
File length: 14803 byte(s)
Diff to previous 58709
added eProblem_ProgressInfo (not used yet), and moved Dump up from CLineError to ILineError. Dump is also a little more efficient now.

Revision 58709 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 2 12:45:24 2013 UTC (10 years, 10 months ago) by kornbluh
File length: 14612 byte(s)
Diff to previous 58451
* Make CFastaReader conform to the reader standards.
  (That is, inherit from CReaderBase and accept IErrorContainers)
  * Removed the CWarning inner class
  * Many, many more functions take "IErrorContainer *" now
* FASTA errors give more control to IErrorContainer to decide whether to 
  just store or to throw. (there are places where throwing is forced, though)
JIRA MSS-194

Revision 58451 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 6 12:02:59 2013 UTC (10 years, 11 months ago) by kornbluh
File length: 12598 byte(s)
Diff to previous 58450
Support [offset=...] keyword in feature table. JIRA BI-826

Revision 58450 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 6 10:28:13 2013 UTC (10 years, 11 months ago) by kornbluh
File length: 12433 byte(s)
Diff to previous 57240
* ILineError now supports "OtherLines" (e.g. to show the line number of referenced features, not just the feat where the error occurred)
* added flag CFeature_table_reader::fCreateGenesFromCDSs so that a CDS with a non-existent gene can be auto-created with the same intervals as the CDS.
  * Also checks if multiple CDSs try to create a gene with the same locus or locus-tag
* added flag CFeature_table_reader::fCDSsMustBeInTheirGenes to check that all CDSs are within the genes that they xref
* Don't add CGene_ref to protein sequences
  * Parse title after reading sequence so we know the molecule type
JIRA BI-801
JIRA BI-826

Revision 57240 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Feb 19 19:27:08 2013 UTC (11 years, 3 months ago) by kornbluh
File length: 10710 byte(s)
Diff to previous 53296
Add internal partials check to C++ feature table reader. JIRA CXX-3806

Revision 53296 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Mar 7 12:20:34 2012 UTC (12 years, 2 months ago) by ludwigf
File length: 10544 byte(s)
Diff to previous 53245
CHANGED: objtools/readers/line_error.hpp



  Eliminate gcc compiler warnings regarding variable initialization
  out of order.

Revision 53245 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 5 14:33:37 2012 UTC (12 years, 2 months ago) by ludwigf
File length: 10543 byte(s)
Diff to previous 52227
CHANGED: objtools/readers/line_error.hpp
	objtools/readers/bed_reader.cpp

  JIRA: GB-1689

  FIX: Track line recognition and handling: Any line starting with the
    letters "track" will no be recognized as a track line unless it has
    at least three columns, and the second and third columns are both
    integers. If a line is found to be a track line but does not parse
    as one, emit a warning and continue reading anyway.
  FIX: Error reporting: Initialize CLineError's eProblem member so that
    meaningful error messages get reported down the road.
  FIX: Feature assembly: Avoid memory corruption when an expected interval
    location turns out to be a point location.
  FIX: Annot assembly: Do not generate duplicate conversion info if a 
    Seq-annot is finalized due to a new track line in the input file.

Revision 52227 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Dec 8 17:47:17 2011 UTC (12 years, 5 months ago) by kornbluh
File length: 10361 byte(s)
Diff to previous 52222
- CSourceModParser now stores a list of "bad mods", which are mods with bad
  qualifier values.  This is NOT for storing unused or unknown mods.
  - User also has the option of how to handle these "bad mods".  They can be
    ignored, an error thrown, or an error printed to cerr.
- CFastaReader now has these flags added:
  - fBadModThrow: an exception is thrown if there's a bad mod.  See above
    for definition of "bad".
  - fUnknModThrow: an exception is thrown if any mods are unused, which
    would likely indicate an invalid mod such as "organims"[sic].
  - If user specifies fValidate, the error message that occurs in case
    of validation failure now includes the locations of the failure.
- CFeature_table_reader_imp: fixed bug where an issue with parsing a qual's
  value could erroneously say that it's an unknown qual type.
  - Also, when a qual's val is in double-quotes, remove those double-quotes
JIRA BI-558

Revision 52222 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Dec 8 12:43:11 2011 UTC (12 years, 5 months ago) by ludwigf
File length: 10239 byte(s)
Diff to previous 52197
CHANGED: objtools/readers/line_error.hpp
    objtools/readers/wiggle_data.[hc]pp
    objtools/readers/wiggle_reader.cpp

  JIRA: MSS-92

  (1) Bug fix: Low level wig parsing code would throw the wrong type of error object,
      resulting in premature program termination.
  (2) Consider data lines with negative position values as valid input whose values
      fall outside of recorded range.

Revision 52197 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Dec 7 11:37:48 2011 UTC (12 years, 5 months ago) by ludwigf
File length: 9920 byte(s)
Diff to previous 50011
CHANGED: objtools/readers/line_error.hpp
    objtools/readers/reader_base.[ch]pp
    objtools/readers/wiggle_reader.cpp

  JIRA: MSS-92

  (1) Fix error reporting during the parsing phase in the wiggle reader.
  (2) On parsing error in the wiggle reader, do not discard any data read 
	  successfully of to this point.
  (3) On parsing error in the wiggle reader, attempt to recover additional 
	  data by advancing to the closest track line or data directive.
  (4) Fix a couple of nearby deprediation warnings.

Revision 50011 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 8 16:15:51 2011 UTC (12 years, 11 months ago) by kornbluh
File length: 9603 byte(s)
Diff to previous 49943
- Make "bad intervals" a different error than 
  the "could not convert string to integer" errors.
JIRA BI-444

Revision 49943 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 2 14:34:09 2011 UTC (12 years, 11 months ago) by kornbluh
File length: 9314 byte(s)
Diff to previous 49903
- refactor ILineError, etc. so that, instead of having an error message,
  we break the error into components consisting of:
  - Problem (enum)
  - Severity
  - SeqId
  - Line
  - FeatureName (might be empty string)
  - QualifierName(might be empty string)
  - QualifierValue(might be empty string)
- CObjReaderLineException tries to maintain backwards compatibility
  in at least some of its constructors.
- ITableFilter and CSimpleTableFilter are a little cleaner and more
  customizable.
JIRA BI-439

Revision 49903 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 1 14:27:17 2011 UTC (12 years, 11 months ago) by kornbluh
File length: 5102 byte(s)
Diff to previous 49803
- Show qual and feat name when unrecognized qual
- Show feat name when unrecognized feat.
- fix a couple minor compiler warnings
JIRA BI-437

Revision 49803 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 24 17:10:10 2011 UTC (13 years ago) by kornbluh
File length: 5102 byte(s)
Diff to previous 43034
- error container should now hold line number (which is actually
  filled in now) and sequence.
- Added ITableFilter so we can have a warning/error for certain
  tags when necessary.
JIRA BI-433

Revision 43034 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 8 14:24:26 2009 UTC (14 years, 8 months ago) by dicuccio
File length: 4613 byte(s)
Diff to previous 42561
Large overhaul of the ID mapper:
- Introduce CSeq_loc_Mapper-based mapping for loc-to-loc mappings
- Update config file representation to be broader, use standard .ini syntax
- Add a unit test
- Update interfaces to make sure that virtual dtors are present
- Add includes where needed

Revision 42561 - (view) (download) (as text) (annotate) - [select for diffs]
Added Wed Jul 22 11:08:57 2009 UTC (14 years, 10 months ago) by ludwigf
File length: 4479 byte(s)
CHANGED: objtools/readers/error_container interface

  JIRA MSS-3

  Properly separate interface and implementations of error_container
  and line_error.
  Provide implementations of IErrorContainer that provide for policies
  for strict/lenient file parsing.
  Provide IErrorContainer implementations that allow either a certain
  number of errors or errors up to a given severity level.

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

NCBI Systems Team">NCBI Systems Team
ViewVC Help
Powered by ViewVC 1.1.20  

HHS Vulnerability Disclosure