use of com.pogeyan.cmis.api.uri.expression.ExpressionParserException in project copper-cms by PogeyanOSS.
the class FilterParserExceptionImpl method createINVALID_SORT_ORDER.
public static ExpressionParserException createINVALID_SORT_ORDER(final Token token, final String expression) {
MessageReference msgRef = ExpressionParserException.INVALID_SORT_ORDER.create();
msgRef.addContent(token.getPosition() + 1);
msgRef.addContent(expression);
return new ExpressionParserException(msgRef);
}
use of com.pogeyan.cmis.api.uri.expression.ExpressionParserException in project copper-cms by PogeyanOSS.
the class FilterParserExceptionImpl method createMISSING_CLOSING_PARENTHESIS.
public static ExpressionParserException createMISSING_CLOSING_PARENTHESIS(final int position, final String expression, final TokenizerExpectError e) {
MessageReference msgRef = ExpressionParserException.MISSING_CLOSING_PARENTHESIS.create();
msgRef.addContent(position + 1);
msgRef.addContent(expression);
return new ExpressionParserException(msgRef, e);
}
use of com.pogeyan.cmis.api.uri.expression.ExpressionParserException in project copper-cms by PogeyanOSS.
the class FilterParserExceptionImpl method createLEFT_SIDE_NOT_A_PROPERTY.
public static ExpressionParserException createLEFT_SIDE_NOT_A_PROPERTY(final Token token, final String expression) throws ExpressionParserInternalError {
MessageReference msgRef = ExpressionParserException.LEFT_SIDE_NOT_A_PROPERTY.create();
msgRef.addContent(token.getPosition() + 1);
msgRef.addContent(expression);
return new ExpressionParserException(msgRef);
}
use of com.pogeyan.cmis.api.uri.expression.ExpressionParserException in project copper-cms by PogeyanOSS.
the class FilterParserExceptionImpl method createINVALID_TRAILING_TOKEN_DETECTED_AFTER_PARSING.
public static ExpressionParserException createINVALID_TRAILING_TOKEN_DETECTED_AFTER_PARSING(final Token token, final String expression) {
MessageReference msgRef = ExpressionParserException.INVALID_TRAILING_TOKEN_DETECTED_AFTER_PARSING.create();
msgRef.addContent(token.getUriLiteral());
msgRef.addContent(Integer.toString(token.getPosition() + 1));
msgRef.addContent(expression);
return new ExpressionParserException(msgRef);
}
use of com.pogeyan.cmis.api.uri.expression.ExpressionParserException in project copper-cms by PogeyanOSS.
the class FilterParserExceptionImpl method createEXPRESSION_EXPECTED_AFTER_POS.
public static ExpressionParserException createEXPRESSION_EXPECTED_AFTER_POS(final int position, final String expression) {
MessageReference msgRef = ExpressionParserException.EXPRESSION_EXPECTED_AFTER_POS.create();
msgRef.addContent(position);
msgRef.addContent(expression);
return new ExpressionParserException(msgRef);
}
Aggregations