public class DestinationNotFoundException extends RuntimeException implements WithErrorResponse
Constructor and Description |
---|
DestinationNotFoundException()
Creates a new exception without any referenced destination name.
|
DestinationNotFoundException(String destinationName)
Initializes the exception by setting a custom message based on the name of the causing destination.
|
DestinationNotFoundException(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.
|
DestinationNotFoundException(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.
|
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 DestinationNotFoundException()
public DestinationNotFoundException(@Nullable String destinationName)
destinationName
- The name of the destination causing this exception.public DestinationNotFoundException(@Nullable String destinationName, String message)
destinationName
- The name of the destination causing this exception.message
- The exception message.public DestinationNotFoundException(@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.