mirror of
https://github.com/bitwarden/server.git
synced 2025-07-07 02:52:50 -05: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