78 lines
1.8 KiB
C#
78 lines
1.8 KiB
C#
|
|
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; }
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
}
|