Skip to content

Instantly share code, notes, and snippets.

@HamidMosalla
Created March 1, 2018 05:29
[Serializable()]
public class InvalidDepartmentException : System.Exception
{
public InvalidDepartmentException() : base() { }
public InvalidDepartmentException(string message) : base(message) { }
public InvalidDepartmentException(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 InvalidDepartmentException(SerializationInfo info, StreamingContext context) { }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment