Click here to Skip to main content
Click here to Skip to main content
Alternative Tip

Cloning an Exception (kinda sorta)

, 4 Jul 2011
Rate this:
Please Sign up or sign in to vote.
[Serializable]...
[Serializable]
        public class MyException : Exception
        {
            public MyException() { }
            public MyException(string message) : base(message) { }
            public MyException(string message, Exception inner) : base(message, inner) { }
            protected MyException(
              System.Runtime.Serialization.SerializationInfo info,
              System.Runtime.Serialization.StreamingContext context)
                : base(info, context) { }
        }

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

charles henington

United States United States
I do not claim to be wrong! I just rarely ever write.

Comments and Discussions

 
-- There are no messages in this forum --
| Advertise | Privacy | Mobile
Web03 | 2.8.140721.1 | Last Updated 5 Jul 2011
Article Copyright 2011 by charles henington
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid