39 lines
725 B
C#
39 lines
725 B
C#
|
|
using System;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using System.Text;
|
|||
|
|
|
|||
|
|
namespace APT.Infrastructure.Core
|
|||
|
|
{
|
|||
|
|
public class CodeException: Exception
|
|||
|
|
{
|
|||
|
|
public string _code = null;
|
|||
|
|
public string Code
|
|||
|
|
{
|
|||
|
|
get { return _code; }
|
|||
|
|
set { _code = value; }
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public CodeException()
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
public CodeException(string message) : this(string.Empty, message, null)
|
|||
|
|
{
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public CodeException(string code, string message):this(code,message,null)
|
|||
|
|
{
|
|||
|
|
}
|
|||
|
|
public CodeException(string message, Exception innerException):this(string.Empty,message,innerException)
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public CodeException(string code, string message, Exception innerException)
|
|||
|
|
:base(message,innerException)
|
|||
|
|
{
|
|||
|
|
this._code = code;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|