Class UnableToAdaptException

    • Constructor Summary

      Constructors 
      Constructor Description
      UnableToAdaptException​(@NotNull org.apache.sling.api.adapter.Adaptable adaptable, @NotNull java.lang.Class<?> type)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      @NotNull org.apache.sling.api.adapter.Adaptable getAdaptable()  
      @NotNull java.lang.Class<?> getType()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • UnableToAdaptException

        public UnableToAdaptException​(@NotNull
                                      @NotNull org.apache.sling.api.adapter.Adaptable adaptable,
                                      @NotNull
                                      @NotNull java.lang.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 java.lang.Class<?> getType()
        Returns:
        Interface to adapt to