aboutsummaryrefslogtreecommitdiffstats
path: root/document/src/vespa/document/select/parser_limits.cpp
blob: 078f3f428d089185f7717f5e8664a2187547a737 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "parser_limits.h"
#include "parsing_failed_exception.h"
#include <vespa/vespalib/util/stringfmt.h>

namespace document::select {

void throw_max_depth_exceeded_exception() {
    throw ParsingFailedException(vespalib::make_string(
            "expression is too deeply nested (max %u levels)", ParserLimits::MaxRecursionDepth));
}

}