+ 5
What is the use of manually raising exceptions?
13 Answers
+ 3
Any examples?
+ 3
Where have you specified that it fails only for the case you mentioned
+ 2
this code isn't working
+ 2
When I enter an integer, it doesn't show me an error.
+ 2
And you have used .fail() in the if statement and you are telling that if it executes then the input is not a double but when it fails doesn't it mean that it failed to receive the input itself. So, how can you tell that it isn't a double.
+ 2
Ok
+ 2
Tq for the help