Skip to content

Instantly share code, notes, and snippets.

@jrwren
Created June 24, 2011 18:04
Show Gist options
  • Save jrwren/1045322 to your computer and use it in GitHub Desktop.
Save jrwren/1045322 to your computer and use it in GitHub Desktop.
You are stupid exception.
/// <summary>
/// The exception that is thrown when you are stupid.
/// </summary>
[Serializable]
public class YouAreStupidException : Exception
{
// constructors...
#region YouAreStupidException()
/// <summary>
/// Constructs a new YouAreStupidException.
/// </summary>
public YouAreStupidException() { }
#endregion
#region YouAreStupidException(string message)
/// <summary>
/// Constructs a new YouAreStupidException.
/// </summary>
/// <param name="message">The exception message</param>
public YouAreStupidException(string message) : base(message) { }
#endregion
#region YouAreStupidException(string message, Exception innerException)
/// <summary>
/// Constructs a new YouAreStupidException.
/// </summary>
/// <param name="message">The exception message</param>
/// <param name="innerException">The inner exception</param>
public YouAreStupidException(string message, Exception innerException) : base(message, innerException) { }
#endregion
#region YouAreStupidException(SerializationInfo info, StreamingContext context)
/// <summary>
/// Serialization constructor.
/// </summary>
protected YouAreStupidException(SerializationInfo info, StreamingContext context) : base(info, context) { }
#endregion
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment