question: assert that the cause of actual throwable is exactly an instance of the given type . concode_field_sep Throwables INSTANCE concode_elem_sep Failures failures concode_field_sep void assertHasMessageStartingWith concode_elem_sep Throwables instance concode_elem_sep void assertHasNoCause concode_elem_sep void assertHasCause concode_elem_sep void assertHasNoSuppressedExceptions concode_elem_sep void assertHasCauseInstanceOf concode_elem_sep void assertHasMessageContaining concode_elem_sep void assertHasStackTraceContaining concode_elem_sep void assertHasSuppressedException concode_elem_sep void assertHasMessage concode_elem_sep void assertHasMessageMatching concode_elem_sep void assertNotNull concode_elem_sep void assertHasMessageEndingWith concode_elem_sep void assertHasRootCauseInstanceOf concode_elem_sep void assertHasRootCauseExactlyInstanceOf concode_elem_sep boolean compareThrowable
target: void function ( AssertionInfo arg0 , Throwable arg1 , Class < ? extends Throwable > arg2 ) { assertNotNull ( arg0 , arg1 ) ; checkTypeIsNotNull ( arg2 ) ; Throwable loc0 = arg1 . getCause ( ) ; if ( loc0 != null && arg2 . equals ( loc0 . getClass ( ) ) ) return ; throw failures . failure ( arg0 , shouldHaveCauseExactlyInstance ( arg1 , arg2 ) ) ; }