Package io.wcm.sling.commons.adapter
Class UnableToAdaptException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- io.wcm.sling.commons.adapter.UnableToAdaptException
-
- All Implemented Interfaces:
java.io.Serializable
@ProviderType public final class UnableToAdaptException extends java.lang.RuntimeException
Exception is thrown ifAdaptTo.notNull(org.apache.sling.api.adapter.Adaptable, java.lang.Class<T>)
call was not successful.- See Also:
- Serialized Form
-
-
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()
-