New course! Every coder should learn Generative AI!
Try a free lesson+ 4
Maybe you should use a "try and catch" statement. But I can't say how you can declare the try to say "compile error" if it is compile time or "run error" for run time...
But I think its possible with a try statement