Files
simapi-net/Exceptions/SimApiException.cs
T

17 lines
330 B
C#
Raw Normal View History

2020-02-04 16:51:15 +08:00
using System;
2020-08-05 15:29:56 +08:00
namespace SimApi.Exceptions
2020-02-04 16:51:15 +08:00
{
/// <summary>
/// Api错误捕获异常
/// </summary>
2020-08-05 15:29:56 +08:00
public class SimApiException : Exception
2020-02-04 16:51:15 +08:00
{
public int Code { get; }
2020-08-05 15:29:56 +08:00
public SimApiException(int code, string message = "") : base(message)
2020-02-04 16:51:15 +08:00
{
Code = code;
}
}
}