mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-20 02:29:24 +08:00
转移.net core 3.1,为.NET 5做准备
This commit is contained in:
22
Infrastructure/CommonException.cs
Normal file
22
Infrastructure/CommonException.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
|
||||
using System;
|
||||
|
||||
namespace Infrastructure
|
||||
{
|
||||
public class CommonException : Exception
|
||||
{
|
||||
private int _code;
|
||||
|
||||
public CommonException(string message, int code)
|
||||
: base(message)
|
||||
{
|
||||
this._code = code;
|
||||
}
|
||||
|
||||
public int Code
|
||||
{
|
||||
get { return _code; }
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user