Class TypeArgumentNotInBoundException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- java.lang.IllegalArgumentException
-
- com.googlecode.objectify.repackaged.gentyref.TypeArgumentNotInBoundException
-
- All Implemented Interfaces:
Serializable
public class TypeArgumentNotInBoundException extends IllegalArgumentException
Thrown to indicate that a type argument for a parameterized type is not within the bound declared on the type parameter.- Author:
- Wouter Coekaerts
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TypeArgumentNotInBoundException(Type argument, TypeVariable<?> parameter, Type bound)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Type
getArgument()
Returns the supplied argument that is not within the bound.Type
getBound()
Returns the bound that was not satisfied.TypeVariable<?>
getParameter()
Returns the type parameter.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
TypeArgumentNotInBoundException
public TypeArgumentNotInBoundException(Type argument, TypeVariable<?> parameter, Type bound)
-
-
Method Detail
-
getArgument
public Type getArgument()
Returns the supplied argument that is not within the bound.
-
getParameter
public TypeVariable<?> getParameter()
Returns the type parameter.
-
getBound
public Type getBound()
Returns the bound that was not satisfied. This is one of the members in getParameter().getBounds().
-
-