Skip to content

Instantly share code, notes, and snippets.

@wilhelmtell
Created July 26, 2010 15:18
Show Gist options
  • Save wilhelmtell/490687 to your computer and use it in GitHub Desktop.
Save wilhelmtell/490687 to your computer and use it in GitHub Desktop.
namespace System {
class Exception<T> : Exception {
public Exception() { }
public Exception(string message) : base(message) { }
public Exception(string message, Exception inner)
: base(message, inner){ }
}
}
namespace App {
class UnkownSetting { }
class Settings {
// ...
throw new Exception<UnknownSetting>();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment