729a2d7b92
lab-03:
...
- Define custom exception class that extends IlleglArg and add a 'value' property
- Throw different Ex for the 2 problems
- Print the exception class in output for information
2020-10-15 07:08:50 +03:00
27234cf989
lab-03:
...
Throw an exception for values over 16 since it will cause an integer overflow.
The Exception message is used in main the same is for -ve values.
2020-10-15 06:44:51 +03:00
e6b7cdc211
lab-03:
...
Catch thrown exception in main and cont. the program.
2020-10-15 06:40:23 +03:00
3413b10185
lab-03:
...
Throw illegalArg Exception when a negative value is passed to factorial().
2020-10-15 06:35:10 +03:00
ad85cbea6c
lab-03:
...
Basic operation of Factorial Q
2020-10-15 06:26:53 +03:00
425b1109a4
project files
2020-10-15 06:07:42 +03:00
9c9695f6f1
lab-03:
...
- Correctly handle in catch body with input buffer defined outside the try body to accessed by catch body
and print the skipped word.
2020-10-02 17:05:28 +03:00
e39fd93c81
lab-03:
...
- try body contains the loop. To study the effect of catching exceptions, the loop will terminate
at the first presance of a letter. For example, '10 time 4', will only yield a sum of 10.
2020-10-02 16:49:48 +03:00
d1f38a542b
lab-03:
...
- Add try/catch preventing NumberFormatEx during runtime. No handling yet.
2020-10-02 16:28:26 +03:00
810480828a
lab-03:
...
- Parse ints class.
- Still no Ex handling
2020-10-02 16:24:58 +03:00
4b8ebcf60c
lab-03:
...
- Count letters class. Class to test and handle exceptions.
2020-09-29 19:51:05 +03:00