Class TypeArgumentNotInBoundException

  • All Implemented Interfaces:
    java.io.Serializable

    public class TypeArgumentNotInBoundException
    extends java.lang.IllegalArgumentException
    Thrown to indicate that a type argument for a parameterized type is not within the bound declared on the type parameter.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.reflect.Type argument  
      private java.lang.reflect.Type bound  
      private java.lang.reflect.TypeVariable<?> parameter  
    • Constructor Summary

      Constructors 
      Constructor Description
      TypeArgumentNotInBoundException​(java.lang.reflect.Type argument, java.lang.reflect.TypeVariable<?> parameter, java.lang.reflect.Type bound)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.reflect.Type getArgument()
      Returns the supplied argument that is not within the bound.
      java.lang.reflect.Type getBound()
      Returns the bound that was not satisfied.
      java.lang.reflect.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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • argument

        private final java.lang.reflect.Type argument
      • parameter

        private final java.lang.reflect.TypeVariable<?> parameter
      • bound

        private final java.lang.reflect.Type bound
    • Constructor Detail

      • TypeArgumentNotInBoundException

        TypeArgumentNotInBoundException​(java.lang.reflect.Type argument,
                                        java.lang.reflect.TypeVariable<?> parameter,
                                        java.lang.reflect.Type bound)
    • Method Detail

      • getArgument

        public java.lang.reflect.Type getArgument()
        Returns the supplied argument that is not within the bound.
      • getParameter

        public java.lang.reflect.TypeVariable<?> getParameter()
        Returns the type parameter.
      • getBound

        public java.lang.reflect.Type getBound()
        Returns the bound that was not satisfied. This is one of the members in getParameter().getBounds().