Changeset 16ba4897 for src/Common
- Timestamp:
- Oct 9, 2024, 5:07:59 PM (12 months ago)
- Branches:
- master
- Children:
- 0766399
- Parents:
- 1b770e40
- Location:
- src/Common
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Common/ErrorObjects.hpp
r1b770e40 r16ba4897 41 41 void append( SemanticErrorException & other ); 42 42 void append( CodeLocation location, const std::string & ); 43 bool isEmpty() const;43 void throwIfNonEmpty(); 44 44 void print(); 45 45 private: -
src/Common/SemanticError.cpp
r1b770e40 r16ba4897 88 88 } 89 89 90 bool SemanticErrorException::isEmpty() const { 91 return errors.empty(); 90 void SemanticErrorException::throwIfNonEmpty() { 91 if ( !errors.empty() ) { 92 throw *this; 93 } 92 94 } 93 95
Note:
See TracChangeset
for help on using the changeset viewer.