try { if (Validate()) { if (MakePerson()) RadMessageBox.Show("ok"); else throw new Exception(ex1); } else throw new Exception(ex2); } catch { if(ex1) RadMessageBox.Show("custommessage1") if(ex2) RadMessageBox.Show("custommessage2") }
try { // statements that can cause exception. } catch (MoreSpecificExceptionType e1) { // error handling code } catch (SpecificExceptionType e2) { // error handling code } catch (GeneralExceptionType eN) { // error handling code }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)