Class KeyTypeException

    • Constructor Detail

      • KeyTypeException

        public KeyTypeException​(Class<? extends Key> expectedKeyClass)
        Creates a new key type exception.
        Parameters:
        expectedKeyClass - The expected key class. Should not be null.
      • KeyTypeException

        public KeyTypeException​(Class<? extends Key> expectedKeyInterface,
                                Class<?>... additionalInterfaces)
        Creates a new key type exception.
        Parameters:
        expectedKeyInterface - The expected key interfaces. Should not be null.
        additionalInterfaces - Additional interfaces the key is required to implement.