Question is off-topic or not relevant. Problem is not unity related but plane C#. Stackoverflow is probably a better place to ask questions like this
Exceptions in C#
Hey guys, new Programmer here, I was looking to throw an exception when the user enters a string or a negative number for the number they wish to be square rooted, as well as the incorrect input for the Y/N try again switch. Any help would be appreciated, thanks.
Follow this Question
Related Questions
How to correctly handle NullReferenceException when using GetComponent<>? 1 Answer
Class com.playerio.PlayCodeStorage not found... 0 Answers
NullReferenceException to an obvious boolean reference. 0 Answers
Does anyone understand why I keep getting "ArgumentOutOfRangeException" from my code? 0 Answers
Playing audio from streaming assets - how do I stop error being thrown if file isn't there? 0 Answers