using SeaHaven.Services.DTOs; namespace SeaHaven.Services.Exceptions { public class WorkOrderBoardValidationException : Exception { public WorkOrderBoardValidationException(string code, string message) : base(message) { Code = code; } public string Code { get; } } public class WorkOrderBoardConcurrencyException : Exception { public WorkOrderBoardConcurrencyException(WorkOrderBoardRowDto? currentState) : base("The record was modified by another user. Refresh and retry.") { CurrentState = currentState; } public WorkOrderBoardRowDto? CurrentState { get; } } }