0
16
llucycodes42
The MyException class inherits from System.Exception. Its constructor takes two arguments: a message string and an inner exception. The public virtual functions defined on the MyException class allow any object to create a instance of the MyException class, and pass in the message string and the inner exception. Finally, the public virtual function allows an object to serialize the MyException class with the given information and context.
Shortcut: exception
public class MyException : System.Exception
{
public () {}
public (string message) : base(message) {}
public (string message, System.Exception inner) : base(message, inner) {}
public (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) {}
}