public class DestinationAccessException extends RuntimeException implements WithErrorResponse
Constructor and Description |
---|
DestinationAccessException()
Creates a new exception without any referenced destination name.
|
DestinationAccessException(String message)
Initializes the exception by delegating the message to the super constructor.
|
DestinationAccessException(String destinationName,
String message)
Initializes the exception by delegating the message to the super constructor and setting the name of the
destination causing the exception.
|
DestinationAccessException(String destinationName,
String message,
Throwable cause)
Initializes the exception by delegating the message and the causing exception to the super constructor and
setting the name of the destination causing the exception.
|
DestinationAccessException(String message,
Throwable cause)
Initializes the exception by delegating the message and the causing exception to the super constructor.
|
DestinationAccessException(Throwable cause)
Initializes the exception by delegating the causing exception to the super constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getDestinationName() |
ResponseWithErrorCode |
getErrorResponse()
Gets the response containing an HTTP error code.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public DestinationAccessException()
public DestinationAccessException(String message)
message
- The exception message.public DestinationAccessException(Throwable cause)
cause
- The exception that caused the exception to be created.public DestinationAccessException(String message, Throwable cause)
message
- The exception message.cause
- The exception that caused the exception to be created.public DestinationAccessException(@Nullable String destinationName, String message)
destinationName
- The name of the destination causing this exception.message
- The exception message.public DestinationAccessException(@Nullable String destinationName, String message, Throwable cause)
destinationName
- The name of the destination causing this exception.message
- The exception message.cause
- The exception that caused the exception to be created.@Nonnull public ResponseWithErrorCode getErrorResponse()
WithErrorResponse
getErrorResponse
in interface WithErrorResponse
Copyright © 2020 SAP SE. All rights reserved.