|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException de.smartics.util.adapt.AdaptableException
public final class AdaptableException
Signals that an implementation is not adaptable to the desired type.
Constructor Summary | |
---|---|
AdaptableException(Class<?> instanceType, Class<?> adapterType) Convenience constructor without a root cause. |
|
AdaptableException(Throwable cause, Class<?> instanceType, Class<?> adapterType) Default constructor. |
Method Summary | |
---|---|
Class<?> |
getAdapterType() Returns the type of the requested adapter the instance cannot provided. |
Class<?> |
getInstanceType() Returns the type of the instance that does not provide the requested adapter. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, 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 |
---|
public AdaptableException(Class<?> instanceType, Class<?> adapterType)
instanceType
- the type of the instance that does not provide the requested adapter.
adapterType
- the type of the requested adapter the instance cannot provided.
public AdaptableException(Throwable cause, Class<?> instanceType, Class<?> adapterType)
cause
- the root cause to this exception.
instanceType
- the type of the instance that does not provide the requested adapter.
adapterType
- the type of the requested adapter the instance cannot provided.
Method Detail |
---|
public Class<?> getInstanceType()
null
.
public Class<?> getAdapterType()
null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |