Created
July 19, 2015 11:04
-
-
Save caglartoklu/0cb807b8f30ed413920f to your computer and use it in GitHub Desktop.
Custom Exception Class #cs #exception
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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