Class ConfigServerException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.yahoo.vespa.hosted.controller.api.integration.configserver.ConfigServerException
-
- All Implemented Interfaces:
Serializable
public class ConfigServerException extends RuntimeException
An exception due to server error, a bad request, or similar.- Author:
- jonmv
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classConfigServerException.ErrorCode
-
Constructor Summary
Constructors Constructor Description ConfigServerException(ConfigServerException.ErrorCode code, String message, String context)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfigServerException.ErrorCodecode()Stringmessage()static ConfigServerExceptionreadException(byte[] body, String context)-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ConfigServerException
public ConfigServerException(ConfigServerException.ErrorCode code, String message, String context)
-
-
Method Detail
-
code
public ConfigServerException.ErrorCode code()
-
message
public String message()
-
readException
public static ConfigServerException readException(byte[] body, String context)
-
-