init
This commit is contained in:
21
DataPRO/CanFDApiProxy/CanApiException.cs
Normal file
21
DataPRO/CanFDApiProxy/CanApiException.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CANFDApiProxy
|
||||
{
|
||||
public class CanApiException : Exception
|
||||
{
|
||||
public int? StatusCode { get; set; }
|
||||
public CanApiException(string message, Exception inner) : base(message, inner)
|
||||
{
|
||||
|
||||
}
|
||||
public CanApiException(string message, int statusCode) : base(message)
|
||||
{
|
||||
StatusCode = statusCode;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user