mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-12 07:02:14 +08:00
C#SDK提交,在window上验证
This commit is contained in:
51
sop-sdk/sdk-csharp/SDKCSharp/Common/SopException.cs
Executable file
51
sop-sdk/sdk-csharp/SDKCSharp/Common/SopException.cs
Executable file
@@ -0,0 +1,51 @@
|
||||
using System;
|
||||
using System.Runtime.Serialization;
|
||||
|
||||
namespace SDKCSharp.Common
|
||||
{
|
||||
/// <summary>
|
||||
/// AOP客户端异常。
|
||||
/// </summary>
|
||||
public class SopException : Exception
|
||||
{
|
||||
private string errorCode;
|
||||
private string errorMsg;
|
||||
|
||||
public SopException()
|
||||
: base()
|
||||
{
|
||||
}
|
||||
|
||||
public SopException(string message)
|
||||
: base(message)
|
||||
{
|
||||
}
|
||||
|
||||
protected SopException(SerializationInfo info, StreamingContext context)
|
||||
: base(info, context)
|
||||
{
|
||||
}
|
||||
|
||||
public SopException(string message, Exception innerException)
|
||||
: base(message, innerException)
|
||||
{
|
||||
}
|
||||
|
||||
public SopException(string errorCode, string errorMsg)
|
||||
: base(errorCode + ":" + errorMsg)
|
||||
{
|
||||
this.errorCode = errorCode;
|
||||
this.errorMsg = errorMsg;
|
||||
}
|
||||
|
||||
public string ErrorCode
|
||||
{
|
||||
get { return this.errorCode; }
|
||||
}
|
||||
|
||||
public string ErrorMsg
|
||||
{
|
||||
get { return this.errorMsg; }
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user