-
-
Notifications
You must be signed in to change notification settings - Fork 345
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new exception type that allows use to determine if it is a loggable error better....
- Loading branch information
Showing
4 changed files
with
66 additions
and
10 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
using Elmah.Io.Client; | ||
|
||
namespace MigrationTools.Exceptions | ||
{ | ||
|
||
|
||
public class MigrationToolsException : Exception | ||
{ | ||
public MigrationToolsException(Exception ex, ExceptionSource errorSource) : base(ex.Message) | ||
{ | ||
this.ErrorSource = errorSource; | ||
} | ||
|
||
public ExceptionSource ErrorSource { get; } | ||
|
||
public enum ExceptionSource | ||
{ | ||
Configuration, | ||
Internal | ||
} | ||
} | ||
} |
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