Class TypeMappingException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- io.leangen.graphql.metadata.exceptions.MappingException
-
- io.leangen.graphql.metadata.exceptions.TypeMappingException
-
- All Implemented Interfaces:
Serializable
public class TypeMappingException extends MappingException
Thrown from the mapping process when the type of the object to be mapped can not be determined. Commonly occurs when type information was lost due to type erasure or dynamic proxying.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TypeMappingException(String s)TypeMappingException(String s, Exception cause)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TypeMappingExceptionambiguousMemberType(Member fieldOrMethod, AnnotatedType declaringType, Exception cause)static TypeMappingExceptionambiguousParameterType(Executable executable, Parameter parameter, Exception cause)static TypeMappingExceptionambiguousType(Type type)static TypeMappingExceptionunknownType()static TypeMappingExceptionunresolvableSuperType(Type superType, Type subType)-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
unknownType
public static TypeMappingException unknownType()
-
ambiguousType
public static TypeMappingException ambiguousType(Type type)
-
ambiguousMemberType
public static TypeMappingException ambiguousMemberType(Member fieldOrMethod, AnnotatedType declaringType, Exception cause)
-
ambiguousParameterType
public static TypeMappingException ambiguousParameterType(Executable executable, Parameter parameter, Exception cause)
-
unresolvableSuperType
public static TypeMappingException unresolvableSuperType(Type superType, Type subType)
-
-