mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-10-15 18:14:44 +00:00
* Remove restating comments in backend * Remove restating comments in frontend stories * Remove restating comments in pipeline * Remove restating comments in pipeline scripts * Restore location-clear comment in BreweryRepository * Remove stale/restating comments found in second pass * Restore mock curated-data branch comment in main.cc * Remove more restating/filler comments in backend * Document account-management endpoints, compose files, and env generator * Squashed commit of the following: commit a8a5b8abd9969859c695092fae6990d03b2135ed Author: Aaron Po <aaron.po97@gmail.com> Date: Sun Aug 23 23:53:56 2026 -0400 Add reverse geocoding for brewery street addresses (#245) * Add geocoding to seed application, remove postal codes from generator Update comments * Update pipeline class diagram for OpenAI generator * Update pipeline activity diagram for brewery coordinates and OpenAI backend * Add mailpit, production, db-only, and minimal environments to deployment diagram * Fix authentication flow diagram for Identity migration * Add account-management flows to authentication diagram * Fix database schema diagram note referencing removed AuthRepository
30 lines
1.2 KiB
C#
30 lines
1.2 KiB
C#
namespace Domain.Exceptions;
|
|
|
|
/// <summary>
|
|
/// The exception that is thrown when a resource conflict occurs (e.g. duplicate username, email already
|
|
/// in use). Maps to HTTP 409 Conflict.
|
|
/// </summary>
|
|
public class ConflictException(string message) : Exception(message);
|
|
|
|
/// <summary>
|
|
/// The exception that is thrown when a requested resource is not found. Maps to HTTP 404 Not Found.
|
|
/// </summary>
|
|
public class NotFoundException(string message) : Exception(message);
|
|
|
|
/// <summary>
|
|
/// The exception that is thrown when authentication fails or is required. Maps to HTTP 401 Unauthorized.
|
|
/// </summary>
|
|
public class UnauthorizedException(string message) : Exception(message);
|
|
|
|
/// <summary>
|
|
/// The exception that is thrown when an authenticated user lacks permission to access a resource. Maps to
|
|
/// HTTP 403 Forbidden.
|
|
/// </summary>
|
|
public class ForbiddenException(string message) : Exception(message);
|
|
|
|
/// <summary>
|
|
/// The exception that is thrown when business rule validation fails (distinct from FluentValidation's
|
|
/// <see cref="FluentValidation.ValidationException" />). Maps to HTTP 400 Bad Request.
|
|
/// </summary>
|
|
public class ValidationException(string message) : Exception(message);
|