mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-09-30 15:23:12 +00:00
26 lines
691 B
C#
26 lines
691 B
C#
|
|
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; }
|
||
|
|
}
|
||
|
|
}
|