Skip to content
Snippets Groups Projects
Commit 95595210 authored by Jan Trávníček's avatar Jan Trávníček
Browse files

AlibException->CommonException in alib2raw

parent 200942c8
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,7 @@
* Author: Jan Travnicek
*/
 
#include <exception/AlibException.h>
#include <exception/CommonException.h>
#include <string/String.h>
#include <string/StringClasses.h>
#include <alphabet/Symbol.h>
......@@ -27,7 +27,7 @@ String StringFromRawParser::parseString(std::istream_iterator<char>& input, cons
 
if(features.count(FEATURES::LINEAR)) return String{string};
 
throw exception::AlibException("Invalid input");
throw exception::CommonException("Invalid input");
}
 
} /* namespace string */
......@@ -6,7 +6,7 @@
*/
 
#include <sax/FromXMLParserHelper.h>
#include <exception/AlibException.h>
#include <exception/CommonException.h>
#include <tree/Tree.h>
#include <tree/TreeClasses.h>
#include <alphabet/Symbol.h>
......@@ -26,7 +26,7 @@ Tree TreeFromRawParser::parseTree(std::deque<sax::Token>::iterator& input, const
} else if(sax::FromXMLParserHelper::isTokenType(input, sax::Token::TokenType::CHARACTER)) {
root = this->parseContentLeaf(input);
} else {
throw exception::AlibException("Invalid token stream");
throw exception::CommonException("Invalid token stream");
}
 
UnrankedTree tree(std::move(*root));
......@@ -39,7 +39,7 @@ Tree TreeFromRawParser::parseTree(std::deque<sax::Token>::iterator& input, const
 
if(features.count(FEATURES::RANKED_TREE)) return Tree{RankedTree{tree}};
 
throw exception::AlibException("Invalid input");
throw exception::CommonException("Invalid input");
}
 
UnrankedNode* TreeFromRawParser::parseContent(std::deque<sax::Token>::iterator& input) const {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment