Skip to content

Instantly share code, notes, and snippets.

@HamidMosalla
Created March 1, 2018 05:29
Show Gist options
  • Save HamidMosalla/d183e4de9c1ec46835f4871bcd3eaf52 to your computer and use it in GitHub Desktop.
Save HamidMosalla/d183e4de9c1ec46835f4871bcd3eaf52 to your computer and use it in GitHub Desktop.
[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