This commit is contained in:
PastSaid
2024-04-29 17:57:07 +08:00
parent e1e6cba475
commit 16fbd10312
123 changed files with 5923 additions and 18677 deletions

View File

@@ -0,0 +1,77 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
namespace E_ZKEccTopSdk
{
/// <summary>
/// TOP客户端异常。
/// </summary>
public class TopException : Exception
{
private string errorCode;
private string errorMsg;
private string subErrorCode;
private string subErrorMsg;
public TopException()
: base()
{
}
public TopException(string message)
: base(message)
{
}
protected TopException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
public TopException(string message, Exception innerException)
: base(message, innerException)
{
}
public TopException(string errorCode, string errorMsg)
: base(errorCode + ":" + errorMsg)
{
this.errorCode = errorCode;
this.errorMsg = errorMsg;
}
public TopException(string errorCode, string errorMsg, string subErrorCode, string subErrorMsg)
: base(errorCode + ":" + errorMsg + ":" + subErrorCode + ":" + subErrorMsg)
{
this.errorCode = errorCode;
this.errorMsg = errorMsg;
this.subErrorCode = subErrorCode;
this.subErrorMsg = subErrorMsg;
}
public string ErrorCode
{
get { return this.errorCode; }
}
public string ErrorMsg
{
get { return this.errorMsg; }
}
public string SubErrorCode
{
get { return this.subErrorCode; }
}
public string SubErrorMsg
{
get { return this.subErrorMsg; }
}
}
}