You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Decription: Hotel-Management-Project-Java/Main.java:591 Exception is caught when Exception is not thrown in Main.main(String[]) [Of Concern(15), High confidence]
Tools usage: SpotBugs
To Repoduce:
using eclispe for Java develomet:
using the PMD to check the bugs
line : 591-595
expeced Behavior
catch(Exception e)
{
System.out.println("Not a valid input");
}
for catch the Exception e, we should throw the exception.
enviroment:
Eclipse ;
possible solution
catch(Exception e)
{
System.out.println("Not a valid input"+e.toString());
}
Severity:
low
The text was updated successfully, but these errors were encountered:
Bug report: Exception is caught when Exception
Decription: Hotel-Management-Project-Java/Main.java:591 Exception is caught when Exception is not thrown in Main.main(String[]) [Of Concern(15), High confidence]
Tools usage: SpotBugs
To Repoduce:
using eclispe for Java develomet:
using the PMD to check the bugs
line : 591-595
expeced Behavior
catch(Exception e)
{
System.out.println("Not a valid input");
}
for catch the Exception e, we should throw the exception.
enviroment:
Eclipse ;
possible solution
catch(Exception e)
{
System.out.println("Not a valid input"+e.toString());
}
Severity:
low
The text was updated successfully, but these errors were encountered: