Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
You should create a class MyExceptionClass that extends Exception, and on else branch do:Hello, i have a question about exceptions. This is my code.
If(var="test") {
ok
} else {
throw exception , stop the program. How can i throw exception here, when var not equal to "test"?
};
Thank you very much
The question is, what are you trying to do, and what do you expect to happen?