Last active
December 19, 2015 02:29
-
-
Save yemrekeskin/5883311 to your computer and use it in GitHub Desktop.
Base Exception for our application
This file contains hidden or 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
| /// <summary> | |
| /// Base Exception when our application | |
| /// </summary> | |
| public class MyApplicationException | |
| : ApplicationException | |
| { | |
| public MyApplicationException() | |
| { | |
| } | |
| public MyApplicationException(string message) | |
| : base(message) | |
| { | |
| } | |
| public MyApplicationException(string message, Exception innerException) | |
| : base(message, innerException) | |
| { | |
| } | |
| } | |
| /// <summary> | |
| /// Exception raised when a realted business operational fails. | |
| /// </summary> | |
| public class BusinessException | |
| : MyApplicationException | |
| { | |
| public BusinessException() | |
| { | |
| } | |
| public BusinessException(string message) | |
| : base(message) | |
| { | |
| } | |
| public BusinessException(string message, Exception innerException) | |
| : base(message, innerException) | |
| { | |
| } | |
| } | |
| /// <summary> | |
| /// Exception raised when a core module fails. | |
| /// </summary> | |
| public class CoreException | |
| : MyApplicationException | |
| { | |
| public CoreException() | |
| { | |
| } | |
| public CoreException(string message) | |
| : base(message) | |
| { | |
| } | |
| public CoreException(string message, Exception innerException) | |
| : base(message, innerException) | |
| { | |
| } | |
| } | |
| /// <summary> | |
| /// Exception raised when a data acccess module fails. | |
| /// </summary> | |
| public class DataAccesException | |
| : MyApplicationException | |
| { | |
| public DataAccesException() | |
| { | |
| } | |
| public DataAccesException(string message) | |
| : base(message) | |
| { | |
| } | |
| public DataAccesException(string message, Exception innerException) | |
| : base(message, innerException) | |
| { | |
| } | |
| } | |
| /// <summary> | |
| /// Exception raised when a remoting(object access in same network) fails. | |
| /// </summary> | |
| public class RemotingException | |
| : MyApplicationException | |
| { | |
| public RemotingException() | |
| { | |
| } | |
| public RemotingException(string message) | |
| : base(message) | |
| { | |
| } | |
| public RemotingException(string message, Exception innerException) | |
| : base(message, innerException) | |
| { | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment