Package com.strobel.reflection
Class Error
- java.lang.Object
-
- com.strobel.reflection.Error
-
final class Error extends java.lang.Object
-
-
Constructor Summary
Constructors Modifier Constructor Description private
Error()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.RuntimeException
ambiguousMatch()
static java.lang.RuntimeException
compoundTypeMayNotHaveGenericParameterBound()
static java.lang.RuntimeException
compoundTypeMayOnlyHaveOneClassBound()
static MemberResolutionException
couldNotResolveMatchingConstructor()
static java.lang.RuntimeException
couldNotResolveMember(MemberInfo member)
static java.lang.RuntimeException
couldNotResolveMethod(java.lang.Object signature)
static java.lang.RuntimeException
couldNotResolveParameterType(java.lang.Object signature)
static java.lang.RuntimeException
couldNotResolveType(java.lang.Object signature)
static java.lang.RuntimeException
incorrectNumberOfTypeArguments()
static java.lang.RuntimeException
incorrectNumberOfTypeArguments(Type type)
static java.lang.RuntimeException
invalidAncestorType(Type<?> ancestorType, Type<?> declaringType)
static java.lang.RuntimeException
invalidSignatureExpectedEndOfTypeArguments(java.lang.String signature, int position)
static java.lang.RuntimeException
invalidSignatureExpectedTypeArgument(java.lang.String signature, int position)
static java.lang.RuntimeException
invalidSignatureNonGenericTypeTypeArguments(Type<?> type)
static java.lang.RuntimeException
invalidSignatureTopLevelGenericParameterUnexpected(java.lang.String signature, int position)
static java.lang.RuntimeException
invalidSignatureTypeExpected(java.lang.String signature, int position)
static java.lang.RuntimeException
invalidSignatureUnexpectedEnd(java.lang.String signature, int position)
static java.lang.RuntimeException
invalidSignatureUnexpectedToken(java.lang.String signature, int position)
static java.lang.RuntimeException
noElementType(Type type)
static java.lang.RuntimeException
notArrayType(Type type)
static java.lang.RuntimeException
notBoundedType(Type type)
static java.lang.RuntimeException
notEnumType(Type type)
static java.lang.RuntimeException
notGenericMethod(MethodInfo method)
static java.lang.RuntimeException
notGenericMethodDefinition(MethodInfo method)
static java.lang.RuntimeException
notGenericParameter(Type type)
static java.lang.RuntimeException
notGenericType(Type type)
static java.lang.RuntimeException
notGenericTypeDefinition(Type type)
static java.lang.RuntimeException
notPrimitiveType(java.lang.Class<?> type)
static java.lang.RuntimeException
notWildcard(Type type)
static java.lang.RuntimeException
rawFieldBindingFailure(FieldInfo field)
static java.lang.RuntimeException
rawMethodBindingFailure(MethodBase method)
static java.lang.RuntimeException
targetInvocationException(java.lang.Throwable cause)
static java.lang.RuntimeException
typeArgumentsMustContainBoundType()
static java.lang.RuntimeException
typeCannotBeInstantiated(Type<?> t)
static java.lang.RuntimeException
typeInstantiationFailed(Type<?> t, java.lang.Throwable cause)
static java.lang.RuntimeException
typeParameterNotDefined(Type typeParameter)
-
-
-
Method Detail
-
notGenericParameter
public static java.lang.RuntimeException notGenericParameter(Type type)
-
notWildcard
public static java.lang.RuntimeException notWildcard(Type type)
-
notBoundedType
public static java.lang.RuntimeException notBoundedType(Type type)
-
notGenericType
public static java.lang.RuntimeException notGenericType(Type type)
-
notGenericMethod
public static java.lang.RuntimeException notGenericMethod(MethodInfo method)
-
notGenericMethodDefinition
public static java.lang.RuntimeException notGenericMethodDefinition(MethodInfo method)
-
noElementType
public static java.lang.RuntimeException noElementType(Type type)
-
notEnumType
public static java.lang.RuntimeException notEnumType(Type type)
-
notArrayType
public static java.lang.RuntimeException notArrayType(Type type)
-
ambiguousMatch
public static java.lang.RuntimeException ambiguousMatch()
-
incorrectNumberOfTypeArguments
public static java.lang.RuntimeException incorrectNumberOfTypeArguments()
-
incorrectNumberOfTypeArguments
public static java.lang.RuntimeException incorrectNumberOfTypeArguments(Type type)
-
notGenericTypeDefinition
public static java.lang.RuntimeException notGenericTypeDefinition(Type type)
-
notPrimitiveType
public static java.lang.RuntimeException notPrimitiveType(java.lang.Class<?> type)
-
typeParameterNotDefined
public static java.lang.RuntimeException typeParameterNotDefined(Type typeParameter)
-
couldNotResolveMethod
public static java.lang.RuntimeException couldNotResolveMethod(java.lang.Object signature)
-
couldNotResolveMember
public static java.lang.RuntimeException couldNotResolveMember(MemberInfo member)
-
couldNotResolveType
public static java.lang.RuntimeException couldNotResolveType(java.lang.Object signature)
-
couldNotResolveParameterType
public static java.lang.RuntimeException couldNotResolveParameterType(java.lang.Object signature)
-
typeArgumentsMustContainBoundType
public static java.lang.RuntimeException typeArgumentsMustContainBoundType()
-
compoundTypeMayOnlyHaveOneClassBound
public static java.lang.RuntimeException compoundTypeMayOnlyHaveOneClassBound()
-
compoundTypeMayNotHaveGenericParameterBound
public static java.lang.RuntimeException compoundTypeMayNotHaveGenericParameterBound()
-
typeCannotBeInstantiated
public static java.lang.RuntimeException typeCannotBeInstantiated(Type<?> t)
-
typeInstantiationFailed
public static java.lang.RuntimeException typeInstantiationFailed(Type<?> t, java.lang.Throwable cause)
-
rawFieldBindingFailure
public static java.lang.RuntimeException rawFieldBindingFailure(FieldInfo field)
-
rawMethodBindingFailure
public static java.lang.RuntimeException rawMethodBindingFailure(MethodBase method)
-
targetInvocationException
public static java.lang.RuntimeException targetInvocationException(java.lang.Throwable cause)
-
couldNotResolveMatchingConstructor
public static MemberResolutionException couldNotResolveMatchingConstructor()
-
invalidAncestorType
public static java.lang.RuntimeException invalidAncestorType(Type<?> ancestorType, Type<?> declaringType)
-
invalidSignatureTypeExpected
public static java.lang.RuntimeException invalidSignatureTypeExpected(java.lang.String signature, int position)
-
invalidSignatureTopLevelGenericParameterUnexpected
public static java.lang.RuntimeException invalidSignatureTopLevelGenericParameterUnexpected(java.lang.String signature, int position)
-
invalidSignatureNonGenericTypeTypeArguments
public static java.lang.RuntimeException invalidSignatureNonGenericTypeTypeArguments(Type<?> type)
-
invalidSignatureUnexpectedToken
public static java.lang.RuntimeException invalidSignatureUnexpectedToken(java.lang.String signature, int position)
-
invalidSignatureUnexpectedEnd
public static java.lang.RuntimeException invalidSignatureUnexpectedEnd(java.lang.String signature, int position)
-
invalidSignatureExpectedEndOfTypeArguments
public static java.lang.RuntimeException invalidSignatureExpectedEndOfTypeArguments(java.lang.String signature, int position)
-
invalidSignatureExpectedTypeArgument
public static java.lang.RuntimeException invalidSignatureExpectedTypeArgument(java.lang.String signature, int position)
-
-