Documentation modifications
This commit is contained in:
@@ -10,11 +10,22 @@ namespace adas_core.Domain.Exceptions;
|
||||
/// </remarks>
|
||||
public class UserNotFoundException : BusinessException
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="UserNotFoundException"/> class with a <see cref="HttpStatusCode.NotFound"/> status code and a message identifying the missing <paramref name="username"/>.
|
||||
/// </summary>
|
||||
/// <param name="username">The username of the user that could not be found.</param>
|
||||
/// <!-- aidoc:v1 sig=3e9ae01 body=4448e1d -->
|
||||
public UserNotFoundException(string username) :
|
||||
base(HttpStatusCode.NotFound, $"USER with username {username} not found")
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="UserNotFoundException"/> class with the username that could not be found and a wrapped inner <see cref="Exception"/>.
|
||||
/// </summary>
|
||||
/// <param name="username">The username that was not found.</param>
|
||||
/// <param name="exception">The inner <see cref="Exception"/> that caused this exception to be raised.</param>
|
||||
/// <!-- aidoc:v1 sig=2ed5f9f body=4448e1d -->
|
||||
public UserNotFoundException(string username, Exception exception) : base(
|
||||
$"USER with username {username} not found", exception)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user