我有一个自定义Exception构造,我想抛出自定义异常使用函数而不是使用throw new ExceptionName("msg")。 我读了Best practices for exceptions,我成功地使用了VB而不是C#。 这是我的自定义构建: [Serializable()]
public class ArtCoreExceptions : Exception
{
namespace Rextester
{
public class BaseException : Exception
{
public BaseException() { }
}
public class Program
{
public static void MethodA(BaseException e)