1
This commit is contained in:
77
00.SDK/E_ZKEccTopSdk/TopException.cs
Normal file
77
00.SDK/E_ZKEccTopSdk/TopException.cs
Normal 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; }
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user