@ProviderType public final class UnableToAdaptException extends RuntimeException
AdaptTo.notNull(org.apache.sling.api.adapter.Adaptable, java.lang.Class<T>) call was not successful.| Constructor and Description |
|---|
UnableToAdaptException(@NotNull org.apache.sling.api.adapter.Adaptable adaptable,
@NotNull Class<?> type) |
| Modifier and Type | Method and Description |
|---|---|
@NotNull org.apache.sling.api.adapter.Adaptable |
getAdaptable() |
@NotNull Class<?> |
getType() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic UnableToAdaptException(@NotNull
@NotNull org.apache.sling.api.adapter.Adaptable adaptable,
@NotNull
@NotNull Class<?> type)
adaptable - Adaptable object instancetype - Interface to adapt to@NotNull public @NotNull org.apache.sling.api.adapter.Adaptable getAdaptable()
@NotNull public @NotNull Class<?> getType()
Copyright © 2014–2019 wcm.io. All rights reserved.