Class UnableToAdaptException

    • Constructor Detail

      • UnableToAdaptException

        public UnableToAdaptException​(@NotNull
                                      @NotNull org.apache.sling.api.adapter.Adaptable adaptable,
                                      @NotNull
                                      @NotNull Class<?> type)
        Parameters:
        adaptable - Adaptable object instance
        type - Interface to adapt to
    • Method Detail

      • getAdaptable

        @NotNull
        public @NotNull org.apache.sling.api.adapter.Adaptable getAdaptable()
        Returns:
        Adaptable object instance
      • getType

        @NotNull
        public @NotNull Class<?> getType()
        Returns:
        Interface to adapt to