Anapher/Strive

View on GitHub
src/Services/ConferenceManagement/Strive.Core/Errors/BadRequestError.cs

Summary

Maintainability
A
35 mins
Test Coverage
using System;

namespace Strive.Core.Errors
{
    /// <summary>
    ///     Indicates that the request could not be understood by the server. Sent when
    ///     no other error is applicable, or if the exact error is unknown or does not have its own error code.
    /// </summary>
    public record BadRequestError<TErrorCode> : DomainError<TErrorCode> where TErrorCode : Enum
    {
        public BadRequestError(string message, TErrorCode code) : base(ErrorType.BadRequest, message, code)
        {
        }
    }
}