22 lines
515 B
C#
22 lines
515 B
C#
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;
|
|
}
|
|
}
|
|
}
|