Class Throwables.ExceptionFunction<E extends java.lang.Exception>

  • All Implemented Interfaces:
    java.util.function.Function<java.lang.Throwable,​E>
    Enclosing class:
    Throwables

    private static final class Throwables.ExceptionFunction<E extends java.lang.Exception>
    extends java.lang.Object
    implements java.util.function.Function<java.lang.Throwable,​E>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.Class<E> type  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private ExceptionFunction​(java.lang.Class<E> type)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      E apply​(java.lang.Throwable throwable)  
      private static <T> java.lang.reflect.Constructor<T> getConstructor​(java.lang.Class<T> type, java.lang.Class<?>... argTypes)  
      private static <T> T newInstance​(java.lang.reflect.Constructor<T> constructor, java.lang.Object... args)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Function

        andThen, compose
    • Field Detail

      • type

        private final java.lang.Class<E extends java.lang.Exception> type
    • Constructor Detail

      • ExceptionFunction

        private ExceptionFunction​(java.lang.Class<E> type)
    • Method Detail

      • apply

        public E apply​(java.lang.Throwable throwable)
        Specified by:
        apply in interface java.util.function.Function<java.lang.Throwable,​E extends java.lang.Exception>
      • getConstructor

        private static <T> java.lang.reflect.Constructor<T> getConstructor​(java.lang.Class<T> type,
                                                                           java.lang.Class<?>... argTypes)
      • newInstance

        private static <T> T newInstance​(java.lang.reflect.Constructor<T> constructor,
                                         java.lang.Object... args)