void () { checkExceptionBubblesUp(new RuntimeException("myMsg")); checkExceptionBubblesUp(new MyException("myMsg")); checkExceptionBubblesUp(new Error("myMsg")); checkExceptionBubblesUp(new IncorrectOperationException("myMsg")); //checkExceptionBubblesUp(new ProcessCanceledException()); }