41 lines
733 B
C#
41 lines
733 B
C#
|
|
using System;
|
|||
|
|
using System.Runtime.Serialization;
|
|||
|
|
|
|||
|
|
namespace Alipay.AopSdk.Core
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// AOP客户端异常。
|
|||
|
|
/// </summary>
|
|||
|
|
public class AopException : Exception
|
|||
|
|
{
|
|||
|
|
public AopException()
|
|||
|
|
{
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public AopException(string message)
|
|||
|
|
: base(message)
|
|||
|
|
{
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
protected AopException(SerializationInfo info, StreamingContext context)
|
|||
|
|
: base(info, context)
|
|||
|
|
{
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public AopException(string message, Exception innerException)
|
|||
|
|
: base(message, innerException)
|
|||
|
|
{
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public AopException(string errorCode, string errorMsg)
|
|||
|
|
: base(errorCode + ":" + errorMsg)
|
|||
|
|
{
|
|||
|
|
ErrorCode = errorCode;
|
|||
|
|
ErrorMsg = errorMsg;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public string ErrorCode { get; }
|
|||
|
|
|
|||
|
|
public string ErrorMsg { get; }
|
|||
|
|
}
|
|||
|
|
}
|