blob: f1029c1ee2c20276b0c8a05fcec4798ab6c3d24f [file] [log] [blame]
package com.siyeh.igtest.exceptionHandling;
public class ThrowGenericClassInspection
{
public void foo() throws Throwable
{
if(bar())
{
throw new Exception();
}
if(bar())
{
throw new RuntimeException();
}
if(bar())
{
throw new Throwable();
}
if(bar())
{
throw new Error();
}
}
private boolean bar()
{
return true;
}
}