21vicky21

自定义新的Exception

namespace MEDAdapter
{
    [global::System.Serializable]
    public class ServiceConfigException : Exception
    {
        //
        // For guidelines regarding the creation of new exception types, see
        //    http://msdn.microsoft.com/library/default.asp?url=/library/en-  us/cpgenref/html/cpconerrorraisinghandlingguidelines.asp
        // and
        //    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncscol/html/csharp07192001.asp
        //

        public ServiceConfigException() { }
        public ServiceConfigException(string message) : base(message) { }
        public ServiceConfigException(string message, Exception inner) : base(message, inner) { }
        protected ServiceConfigException(
          System.Runtime.Serialization.SerializationInfo info,
          System.Runtime.Serialization.StreamingContext context)
            : base(info, context) { }
    }
}

分类:

技术点:

相关文章:

  • 2021-09-10
  • 2021-12-05
  • 2022-02-04
  • 2022-01-29
  • 2022-12-23
  • 2021-12-09
  • 2021-12-20
  • 2022-01-08
猜你喜欢
  • 2022-02-21
  • 2021-12-18
  • 2021-11-28
  • 2022-01-10
  • 2022-12-23
  • 2022-01-25
  • 2021-10-14
相关资源
相似解决方案