Skip to content

Commit

Permalink
Merge pull request #32571 from vespa-engine/arnej/avoid-stack-trace-f…
Browse files Browse the repository at this point in the history
…rom-validator

validation failure should not trigger stack trace
  • Loading branch information
bratseth authored Oct 10, 2024
2 parents bee3c97 + e2567e0 commit 4b679f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion container-search/abi-spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -2550,7 +2550,7 @@
]
},
"com.yahoo.search.grouping.UnavailableAttributeException" : {
"superClass" : "java.lang.RuntimeException",
"superClass" : "com.yahoo.processing.IllegalInputException",
"interfaces" : [ ],
"attributes" : [
"public"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.search.grouping;

import com.yahoo.processing.IllegalInputException;

/**
* This exception is thrown by the {@link GroupingValidator} if it a {@link GroupingRequest} contains a reference to an
* unavailable attribute.
*
* @author Simon Thoresen Hult
*/
@SuppressWarnings("serial")
public class UnavailableAttributeException extends RuntimeException {
public class UnavailableAttributeException extends IllegalInputException {

private final String clusterName;
private final String attributeName;
Expand Down

0 comments on commit 4b679f0

Please sign in to comment.