Skip to content

Instantly share code, notes, and snippets.

@sanmadjack
Created February 13, 2013 14:41
Show Gist options
  • Save sanmadjack/4945026 to your computer and use it in GitHub Desktop.
Save sanmadjack/4945026 to your computer and use it in GitHub Desktop.
A C# WTF Exception. Is for exceptions that should never, ever happen. And then they do.
using System;
namespace Exceptions {
public class WTFException : Exception {
public WTFException(Exception ex) : base(null, ex) { }
public WTFException(string message, Exception ex) : base(message, ex) { }
public WTFException(string message) : base(message) { }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment