mirror of
https://github.com/bitwarden/server
synced 2025-12-12 22:33:45 +00:00
modelstate and exception handling for public apis
This commit is contained in:
@@ -5,7 +5,9 @@ namespace Bit.Core.Exceptions
|
||||
{
|
||||
public class BadRequestException : Exception
|
||||
{
|
||||
public BadRequestException(string message) : this(string.Empty, message) { }
|
||||
public BadRequestException(string message)
|
||||
: base(message)
|
||||
{ }
|
||||
|
||||
public BadRequestException(string key, string errorMessage)
|
||||
: base("The model state is invalid.")
|
||||
|
||||
Reference in New Issue
Block a user