public class ServiceUnavailableException extends RetryableException implements HttpErrorStatusProvider
Constructor and Description |
---|
ServiceUnavailableException(String serviceName) |
ServiceUnavailableException(String serviceName,
String message) |
ServiceUnavailableException(String serviceName,
String message,
Throwable cause) |
ServiceUnavailableException(String serviceName,
Throwable cause) |
Modifier and Type | Method and Description |
---|---|
String |
getServiceName() |
int |
getStatusCode()
Gives the HTTP status code for this error.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getMessage
public ServiceUnavailableException(String serviceName)
public String getServiceName()
public int getStatusCode()
HttpErrorStatusProvider
getStatusCode
in interface HttpErrorStatusProvider
Copyright © 2024 Cask Data, Inc. Licensed under the Apache License, Version 2.0.