24 lines
750 B
C#
24 lines
750 B
C#
using Livia.Models.Data;
|
|
|
|
namespace Livia.Models;
|
|
|
|
public class ResultNotReadyException(ServerResponseJson response) : Exception("Result not ready")
|
|
{
|
|
public ServerResponseJson ServerResponseJson { get; } = response;
|
|
}
|
|
|
|
public class ServerErrorException(ServerResponseJson response) : Exception($"Server error {response.ErrorNumber}")
|
|
{
|
|
public ServerResponseJson ServerResponseJson { get; } = response;
|
|
}
|
|
|
|
|
|
public class SelectReportModuleFailedException(int errorNumber) : Exception("Report name already exists")
|
|
{
|
|
public int ErrorNumber { get; } = errorNumber;
|
|
}
|
|
|
|
public class LoginErrorException(LoginErrorResponseJson response) : Exception("Login error")
|
|
{
|
|
public LoginErrorResponseJson ServerResponseJson { get; } = response;
|
|
} |