Class DestinationNotFoundException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.sap.cloud.sdk.cloudplatform.connectivity.exception.DestinationNotFoundException
All Implemented Interfaces:
Serializable

public class DestinationNotFoundException extends RuntimeException
Runtime exception indicating that a destination cannot be found.
See Also:
  • Constructor Details

    • DestinationNotFoundException

      public DestinationNotFoundException()
      Creates a new exception without any referenced destination name.
    • DestinationNotFoundException

      public DestinationNotFoundException(@Nullable String destinationName)
      Initializes the exception by setting a custom message based on the name of the causing destination.
      Parameters:
      destinationName - The name of the destination causing this exception.
    • DestinationNotFoundException

      public DestinationNotFoundException(@Nullable Throwable cause)
      Initializes the exception by delegating the causing exception to the super constructor.
      Parameters:
      cause - The exception that caused the exception to be created.
    • DestinationNotFoundException

      public DestinationNotFoundException(@Nullable String destinationName, @Nullable String message)
      Initializes the exception by delegating the message to the super constructor and setting the name of the destination causing the exception.
      Parameters:
      destinationName - The name of the destination causing this exception.
      message - The exception message.
    • DestinationNotFoundException

      public DestinationNotFoundException(@Nullable String destinationName, @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 of the destination causing the exception.
      Parameters:
      destinationName - The name of the destination causing this exception.
      message - The exception message.
      cause - The exception that caused the exception to be created.
  • Method Details

    • getDestinationName

      @Nullable public String getDestinationName()