diff options
author | Jon Marius Venstad <venstad@gmail.com> | 2021-04-26 11:54:47 +0200 |
---|---|---|
committer | Jon Marius Venstad <venstad@gmail.com> | 2021-04-26 11:54:47 +0200 |
commit | d5a79bc8f72a0c7b78341995c9d20bb9dbc50ff3 (patch) | |
tree | 11d368108f8f8053c2f8bf603569acb1121451e0 /controller-api | |
parent | 631c80aa875baff4f2d3de15bf54736ed97c4096 (diff) |
Let null values mean no query, and allow explicitly empty parameters
Diffstat (limited to 'controller-api')
-rw-r--r-- | controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/ConfigServerException.java | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/ConfigServerException.java b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/ConfigServerException.java deleted file mode 100644 index 4240b0d9fa6..00000000000 --- a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/ConfigServerException.java +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -package com.yahoo.vespa.hosted.controller.api.integration.configserver; - -import java.net.URI; -import java.util.Objects; - -/** - * @author Tony Vaagenes - */ -public class ConfigServerException extends RuntimeException { - - private final URI serverUri; - private final ErrorCode errorCode; - private final String serverMessage; - - public ConfigServerException(URI serverUri, String context, String serverMessage, ErrorCode errorCode, Throwable cause) { - super(context + ": " + serverMessage, cause); - this.serverUri = Objects.requireNonNull(serverUri); - this.errorCode = Objects.requireNonNull(errorCode); - this.serverMessage = Objects.requireNonNull(serverMessage); - } - - public ErrorCode getErrorCode() { - return errorCode; - } - - public URI getServerUri() { - return serverUri; - } - - public String getServerMessage() { - return serverMessage; - } - - // TODO: Copied from Vespa. Expose these in Vespa and use them here - public enum ErrorCode { - APPLICATION_LOCK_FAILURE, - BAD_REQUEST, - ACTIVATION_CONFLICT, - INTERNAL_SERVER_ERROR, - INVALID_APPLICATION_PACKAGE, - METHOD_NOT_ALLOWED, - NOT_FOUND, - OUT_OF_CAPACITY, - REQUEST_TIMEOUT, - UNKNOWN_VESPA_VERSION, - PARENT_HOST_NOT_READY, - CERTIFICATE_NOT_READY, - LOAD_BALANCER_NOT_READY - } - -} |