Class 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 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().