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 (wouter@coekaerts.be)
See Also:
  • Method Details

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