@ try…catch @page "/catch" @rendermode InteractiveAuto <h3>Catch</h3> @try{ string str = "ha"; var bol = Convert.ToBoolean(str);<