Package org.olap4j.mdx.parser

Examples of org.olap4j.mdx.parser.MdxParseException


        int actualEndLine = 100;
        int actualEndColumn = 99;

        // Search for a SqlParseException -- with its position set -- somewhere
        // in the stack.
        MdxParseException mpe = null;
        for (Throwable x = ex; x != null; x = x.getCause()) {
            if ((x instanceof MdxParseException)
                && (((MdxParseException) x).getRegion() != null))
            {
                mpe = (MdxParseException) x;
                break;
            }
            if (x.getCause() == x) {
                break;
            }
        }

        if (mpe != null) {
            final ParseRegion region = mpe.getRegion();
            actualLine = region.getStartLine();
            actualColumn = region.getStartColumn();
            actualEndLine = region.getEndLine();
            actualEndColumn = region.getEndColumn();
            actualException = mpe;
View Full Code Here


    {
        String s = cur_token.value.toString();
        if (cur_token.left != -1) {
            final ParseRegion region =
                scanner.createRegion(cur_token.left, cur_token.right);
            throw new MdxParseException(
                region,
                "Syntax error at " + region
                + ", token '" + s + "'");
        } else {
            throw new RuntimeException(
View Full Code Here

            // AxisOrdinal values go from -2 to 4 for standard axis, but higher
            // ordinals are allowed. The negative values represent
            // special cases, so are ignored.
            if (index < 0 || index != d) {
                throw new MdxParseException(
                    createRegion(nleft, nright),
                    "Invalid axis specification. The axis number must be a "
                    + "non-negative integer, but it was " + d + ".");
            }
View Full Code Here

                    && Character.isWhitespace(nextChar))
                {
                    // fall through
                } else {
                    // everything else is an error
                    throw new MdxParseException(
                        createRegion(iPrevChar, iChar),
                        "Unexpected character '" + (char) nextChar + "'");
                }

            case ' ':
View Full Code Here

TOP

Related Classes of org.olap4j.mdx.parser.MdxParseException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.