Class DestinationTypeNotSupportedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.sap.cloud.sdk.cloudplatform.connectivity.exception.DestinationAccessException
com.sap.cloud.sdk.cloudplatform.connectivity.exception.DestinationTypeNotSupportedException
- All Implemented Interfaces:
Serializable
This exception is thrown if a
DestinationType
is not supported by a method.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new exception without any referenced destination name or type.DestinationTypeNotSupportedException
(String destinationName, DestinationType destinationType) Initializes the exception by setting a custom message based on the destination type and setting the name and the type of the causing destination.DestinationTypeNotSupportedException
(String destinationName, DestinationType destinationType, String message) Initializes the exception by delegating the message to the super constructor and setting the name and the type of the causing destination.DestinationTypeNotSupportedException
(String destinationName, DestinationType destinationType, String message, Throwable cause) Initializes the exception by delegating the message and the causing exception to the super constructor and setting the name and the type of the causing destination.DestinationTypeNotSupportedException
(String destinationName, DestinationType destinationType, Throwable cause) Initializes the exception by delegating the causing exception to the super constructor and setting the name and type of the causing destination. -
Method Summary
Methods inherited from class com.sap.cloud.sdk.cloudplatform.connectivity.exception.DestinationAccessException
getDestinationName
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
DestinationTypeNotSupportedException
public DestinationTypeNotSupportedException()Creates a new exception without any referenced destination name or type. -
DestinationTypeNotSupportedException
public DestinationTypeNotSupportedException(@Nullable String destinationName, @Nullable DestinationType destinationType) Initializes the exception by setting a custom message based on the destination type and setting the name and the type of the causing destination.- Parameters:
destinationName
- The name of the causing destination.destinationType
- The type of the causing destination.
-
DestinationTypeNotSupportedException
public DestinationTypeNotSupportedException(@Nullable String destinationName, @Nullable DestinationType destinationType, @Nullable String message) Initializes the exception by delegating the message to the super constructor and setting the name and the type of the causing destination.- Parameters:
destinationName
- The name of the causing destination.destinationType
- The type of the causing destination.message
- The exception message.
-
DestinationTypeNotSupportedException
public DestinationTypeNotSupportedException(@Nullable String destinationName, @Nullable DestinationType destinationType, @Nullable Throwable cause) Initializes the exception by delegating the causing exception to the super constructor and setting the name and type of the causing destination.- Parameters:
destinationName
- The name of the causing destination.destinationType
- The type of the causing destination.cause
- The exception that caused the exception to be created.
-
DestinationTypeNotSupportedException
public DestinationTypeNotSupportedException(@Nullable String destinationName, @Nullable DestinationType destinationType, @Nullable String message, @Nullable Throwable cause) Initializes the exception by delegating the message and the causing exception to the super constructor and setting the name and the type of the causing destination.- Parameters:
destinationName
- The name of the causing destination.destinationType
- The type of the causing destination.message
- The exception message.cause
- The exception that caused the exception to be created.
-
-
Method Details
-
getDestinationType
-