in MSDN link, si è detto che
Non gettare System.Exception o System.SystemException.
Nel mio codice che sto gettando in questo modoLe migliori pratiche per la cattura e gettando l'eccezione
private MsgShortCode GetshortMsgCode(string str)
{
switch (str.Replace(" ","").ToUpper())
{
case "QNXC00":
return MsgShortCode.QNXC00;
default:
throw new Exception("Invalid message code received");
}
}
si tratta di una cattiva pratica ??