blob: 8b63f6e0e919125d1755426e72d16e2d1f68feea [file] [log] [blame]
package com.siyeh.igtest.exceptionHandling;
public class ThrowCaughtLocallInspection
{
public void foo() throws Exception
{
try {
throw new MyCheckedException();
} catch (MyCheckedException e) {
e.printStackTrace();
}
try {
throw new MyCheckedException();
} catch (Exception e) {
e.printStackTrace();
}
try {
throw new MyCheckedException();
} catch (MyUncheckedException e) {
if (false) {
throw new MyUncheckedException(e);
} else {
}
}
try {
try {
throw new MyCheckedException();
} catch (MyUncheckedException e) {
e.printStackTrace();
}
} catch (MyCheckedException e) {
e.printStackTrace();
}
}
}