-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#15 Setting statuscode to BadRequest when input is not valid
- Loading branch information
Jon-Vidar Schneider
authored and
Jon-Vidar Schneider
committed
Mar 5, 2018
1 parent
4684da4
commit 8f0c198
Showing
5 changed files
with
72 additions
and
33 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
src/FhirStarter.Bonfire.STU3/Exceptions/ValidateInputException.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,16 @@ | ||
using System; | ||
|
||
namespace FhirStarter.Bonfire.STU3.Exceptions | ||
{ | ||
public class ValidateInputException: ArgumentException | ||
{ | ||
public ValidateInputException(string message): base(message) | ||
{ | ||
} | ||
|
||
public ValidateInputException(string message, Exception innerException): base(message, innerException) | ||
{ | ||
|
||
} | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
src/FhirStarter.Bonfire.STU3/Exceptions/ValidateOutputException.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,21 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace FhirStarter.Bonfire.STU3.Exceptions | ||
{ | ||
public class ValidateOutputException: ArgumentException | ||
{ | ||
|
||
public ValidateOutputException(string message) : base(message) | ||
{ | ||
} | ||
|
||
public ValidateOutputException(string message, Exception innerException) : base(message, innerException) | ||
{ | ||
|
||
} | ||
} | ||
} |
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