public class ServiceNotAvailableException extends Exception implements WithErrorResponse
Constructor and Description |
---|
ServiceNotAvailableException() |
ServiceNotAvailableException(String message)
Exception constructor.
|
ServiceNotAvailableException(String message,
Throwable cause)
Exception constructor.
|
ServiceNotAvailableException(Throwable cause)
Exception constructor.
|
Modifier and Type | Method and Description |
---|---|
ResponseWithErrorCode |
getErrorResponse()
Gets the response containing an HTTP error code.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ServiceNotAvailableException(@Nullable String message)
message
- The exception message.public ServiceNotAvailableException(@Nullable Throwable cause)
cause
- The exception cause.public ServiceNotAvailableException(@Nullable String message, @Nullable Throwable cause)
message
- The exception message.cause
- The exception cause.public ServiceNotAvailableException()
@Nonnull public ResponseWithErrorCode getErrorResponse()
getErrorResponse
in interface WithErrorResponse
Copyright © 2020 SAP SE. All rights reserved.