@@ -0,0 +1,825 @@
+package com.mars.test.java;%0A%0Aimport com.google.common.base.Preconditions;%0Aimport lombok.extern.slf4j.Slf4j;%0Aimport org.junit.Assert;%0Aimport org.junit.Test;%0A%0Aimport java.io.IOException;%0A%0A/**%0A * Created by USER on 2017/2/15.%0A */%0A@Slf4j%0Apublic class TestExceptionHandle %7B%0A%0A%0A    @Test()%0A    public void test1()%7B%0A        try %7B%0A            Assert.assertEquals(0,getAAA());%0A        %7D catch (IOException e) %7B%0A            e.printStackTrace();%0A            log.error(%22%E5%8F%91%E7%94%9F%E9%94%99%E8%AF%AF%22+e.getMessage());%0A        %7D%0A    %7D%0A%0A    private int getAAA() throws IOException%7B%0A        int aaa = 0;%0A        try%7B%0A            aaa=1;%0A            if(aaa!=0)%7B%0A                throw new IOException(%22E0001%22);%0A            %7D%0A            return aaa;%0A        %7Dcatch (IOException e) %7B%0A            log.info(%22enter exception handle%22);%0A            throw e;%0A        %7D%0A    %7D%0A%7D%0A

add demo code