Search in sources :

Example 16 with MessageReference

use of com.pogeyan.cmis.api.uri.exception.MessageReference 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);
}
Also used : ExpressionParserException(com.pogeyan.cmis.api.uri.expression.ExpressionParserException) MessageReference(com.pogeyan.cmis.api.uri.exception.MessageReference)

Example 17 with MessageReference

use of com.pogeyan.cmis.api.uri.exception.MessageReference 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);
}
Also used : ExpressionParserException(com.pogeyan.cmis.api.uri.expression.ExpressionParserException) MessageReference(com.pogeyan.cmis.api.uri.exception.MessageReference)

Example 18 with MessageReference

use of com.pogeyan.cmis.api.uri.exception.MessageReference 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);
}
Also used : ExpressionParserException(com.pogeyan.cmis.api.uri.expression.ExpressionParserException) MessageReference(com.pogeyan.cmis.api.uri.exception.MessageReference)

Example 19 with MessageReference

use of com.pogeyan.cmis.api.uri.exception.MessageReference 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);
}
Also used : ExpressionParserException(com.pogeyan.cmis.api.uri.expression.ExpressionParserException) MessageReference(com.pogeyan.cmis.api.uri.exception.MessageReference)

Example 20 with MessageReference

use of com.pogeyan.cmis.api.uri.exception.MessageReference 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);
}
Also used : ExpressionParserException(com.pogeyan.cmis.api.uri.expression.ExpressionParserException) MessageReference(com.pogeyan.cmis.api.uri.exception.MessageReference)

Aggregations

MessageReference (com.pogeyan.cmis.api.uri.exception.MessageReference)22 ExpressionParserException (com.pogeyan.cmis.api.uri.expression.ExpressionParserException)13