void function ( @ Nullable Throwable arg0 ) { propagateIfInstanceOf ( arg0 , Error . class ) ; propagateIfInstanceOf ( arg0 , RuntimeException . class ) ; }
propagates throwable exactly as-is , if and only if it is aninstance of runtimeexception or error . example usage : try somemethodthatcouldthrowanything ; catch iknowwhattodowiththisexception e handle e ; catch throwable t throwables.propagateifpossible t ; throw new runtimeexception `` unexpected '' , t ; concode_field_sep PlaceHolder placeHolder concode_field_sep List<Throwable> getCausalChain concode_elem_sep RuntimeException propagate concode_elem_sep void propagateIfInstanceOf concode_elem_sep Throwable getRootCause concode_elem_sep String getStackTraceAsString