Class DestinationTypeNotSupportedException

All Implemented Interfaces:
Serializable

public class DestinationTypeNotSupportedException extends DestinationAccessException
This exception is thrown if a DestinationType is not supported by a method.
See Also:
  • 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

      @Nullable public DestinationType getDestinationType()