TechnionYP5777 / Bugquery

Bug query
9 stars 1 forks source link

Alerting in case of no results found #195

Closed zahimizrahi closed 7 years ago

zahimizrahi commented 7 years ago

Hi BugQuery team,

I tried to use the following code:

        public static class ZahiMizrahiFirstException extends Exception {} 
        public static class ZahiMizrahiSecondException extends Exception {} 

        public static void main(String[] args) throws Exception {

                //create an array of 10 numbers
                int[] a = null;
                int[] numbers = new int[]{1,2,3,4,5,6,7,8,9,10};

                for(int i=0; i < numbers.length; i++){

                         if(numbers[i]%2 == 0)
                              throw new ZahiMizrahiFirstException(); 
                         else
                                numbers[i]=3;

                }

        }
}

I got this exception:

Exception in thread "main" FindEvenOrOddNumber$ZahiMizrahiFirstException
    at FindEvenOrOddNumber.main(FindEvenOrOddNumber.java:14)

of course that I made up the exception so It wasn't found a result, I got this page:

image

it seems that in case of no results found, there isn't any special attention that needs to be done.

zahimizrahi commented 7 years ago

notice that "BugQuery has found 0 results" is not the same as "BugQuery has not found"

yonzarecki commented 7 years ago

OK, We are all in for clarity, @rodedzats is working on it.

rodedzats commented 7 years ago

Done