Snippet: Exception class

property value
IDE Visual Studio
Language C#
Title Exception class
Shortcut c_
Description class derived from Exception class
Snippet Types Expansion
Namespaces System
System.Runtime.Serialization

Placeholders

Identifier Tooltip Default Value Editable Function Type Name
base Base exception type Exception yes
modifier Modifier(s) public yes
name Exception name My yes

Code

[Serializable]
public class MyException : Exception {
	public MyException() {
	}

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

	public MyException(string message, Exception inner) : base(message, inner) {
	}

	protected MyException(SerializationInfo info, StreamingContext context) : base(info, context) {
	}
}