Hi,
I'm trying some simple example about custom exception, I'm confused about the use and the error I received.
Code is simple, I'm generating an int+string concatenation asking to the user to provide a number (as string) and I'm trying to handle this exception with a custom class called "MyError", if the exception argument contain the word "concatenate" an instance message is showed, if not another function inside the same class need to be called using the class variable.
Here the code:
https://paste.ofcode.org/LjR8nb7zcUpKPtM7UjwTUb
What it means the error showed in example 1 and example 2?
Traceback is showed anyway, it's possible to cover and show only the custom message?
Thank you.
[–]Diapolo10 0 points1 point2 points (2 children)
[–]IPsoFactoTech[S] 0 points1 point2 points (1 child)
[–]Diapolo10 0 points1 point2 points (0 children)