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.
See Also:
  • Field Details

    • argument

      private final Type argument
    • parameter

      private final TypeVariable<?> parameter
    • bound

      private final Type bound
  • Constructor Details

    • TypeArgumentNotInBoundException

      TypeArgumentNotInBoundException(Type argument, TypeVariable<?> parameter, Type bound)
  • 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().