Skip to content

Instantly share code, notes, and snippets.

@caglartoklu
Created July 19, 2015 11:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save caglartoklu/0cb807b8f30ed413920f to your computer and use it in GitHub Desktop.
Save caglartoklu/0cb807b8f30ed413920f to your computer and use it in GitHub Desktop.
Custom Exception Class #cs #exception
namespace SomeNamespace
{
using System;
class CustomException : Exception
{
public CustomException()
: base() { }
public CustomException(string message)
: base(message) { }
public CustomException(string format, params object[] args)
: base(string.Format(format, args)) { }
public CustomException(string message, Exception innerException)
: base(message, innerException) { }
public CustomException(string format, Exception innerException, params object[] args)
: base(string.Format(format, args), innerException) { }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment