Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not print stack trace when invalid configuration is encountered
- This improves invalid configuration output and makes it easier to spot what the actual issue is. - This also ensures that an invalid configuration is seen as a graceful shutdown rather than the server terminating unexpectedly.
- Loading branch information
1 parent
b3e6053
commit 326c1f4
Showing
3 changed files
with
21 additions
and
11 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
7 changes: 7 additions & 0 deletions
7
src/EventStore.Common/Exceptions/InvalidConfigurationException.cs
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,7 @@ | ||
using System; | ||
|
||
namespace EventStore.Common.Exceptions { | ||
public class InvalidConfigurationException : Exception { | ||
public InvalidConfigurationException(string message) : base(message) { } | ||
} | ||
} |
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