Develop

사용자 정의 예외 만들기

작은이야기 2016. 5. 11. 15:00

    public class InvaildSessionException : System.Exception

    {

        public InvaildSessionException() : base() {}

        public InvaildSessionException(string message) : base(message) { }

        public InvaildSessionException(string message, System.Exception inner) : base(message, inner) { }


        // A constructor is needed for serialization when an

        // exception propagates from a remoting server to the client. 

        protected InvaildSessionException(System.Runtime.Serialization.SerializationInfo info,

            System.Runtime.Serialization.StreamingContext context)

        { }

    }




https://msdn.microsoft.com/ko-kr/library/ms173163.aspx