RuntimeException function ( Throwable arg0 , Class < X > arg1 ) { checkNotNull ( arg0 ) ; thrown = arg0 ; Throwables . propagateIfPossible ( arg0 , IOException . class ) ; Throwables . propagateIfPossible ( arg0 , arg1 ) ; throw new RuntimeException ( arg0 ) ; }
stores the given throwable and rethrows it . it will be rethrown as is if it is an ioexception , runtimeexception , error or a checked exception of thegiven type . otherwise , it will be rethrown wrapped in a runtimeexception . note : be sure to declare all of the checked exception types your try block can throw when calling an overload of this method so as to avoid losing the original exception type . this method always throws , and as such should be called as throw closer.rethrow e , ... ; to ensure the compiler knows that it will throw . concode_field_sep Deque<Closeable> stack concode_elem_sep Method addSuppressed concode_elem_sep Suppressor suppressor concode_elem_sep LoggingSuppressor INSTANCE concode_elem_sep SuppressingSuppressor INSTANCE concode_elem_sep Throwable thrown concode_elem_sep Suppressor SUPPRESSOR concode_field_sep boolean isAvailable concode_elem_sep Closer create concode_elem_sep void suppress concode_elem_sep void suppress concode_elem_sep void suppress concode_elem_sep void close concode_elem_sep Method getAddSuppressed concode_elem_sep C register