2024-05-13 18:41:00 -05:00
|
|
|
|
using Semver;
|
|
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
|
|
namespace LANCommander.SDK.Exceptions
|
|
|
|
|
|
{
|
|
|
|
|
|
public class ApiVersionMismatchException : Exception
|
|
|
|
|
|
{
|
2026-07-07 01:50:25 -05:00
|
|
|
|
public SemVersion ClientVersion { get; }
|
|
|
|
|
|
public SemVersion ServerVersion { get; }
|
2024-05-13 18:41:00 -05:00
|
|
|
|
|
2026-07-07 01:50:25 -05:00
|
|
|
|
public ApiVersionMismatchException(SemVersion client, SemVersion server, string message) : base(message)
|
|
|
|
|
|
{
|
|
|
|
|
|
ClientVersion = client;
|
|
|
|
|
|
ServerVersion = server;
|
|
|
|
|
|
}
|
2024-05-13 18:41:00 -05:00
|
|
|
|
}
|
|
|
|
|
|
}
|