RuntimeException function ( Throwable arg0 ) { Exceptions . < RuntimeException > cheat ( arg0 ) ; return null ; }
throws the given throwable , but the compiler does n't know it . note : the return type is another cheat that allows this method to be used like this : throw exceptions.unchecked error ; the throw is never reached , because the exception is not returned which would lead to a classcastexception but thrown by this method . the above code has the same effect as this : exceptions.unchecked error ; the advantage of the explicit throw is that the compiler knows that this line unconditionally throws an exception . concode_field_sep PlaceHolder placeHolder concode_field_sep void cheat concode_elem_sep String getStackTrace concode_elem_sep String getStackTrace concode_elem_sep String getStackTrace concode_elem_sep void printStackTrace concode_elem_sep void printStackTrace concode_elem_sep void printStackTrace concode_elem_sep void printStackTrace concode_elem_sep T initCause concode_elem_sep String toString concode_elem_sep Throwable getRootCause