📄 exceptionreportimpl.cs
字号:
using System;
using log4net;
namespace NetBpm.Workflow.Log.Impl
{
public class ExceptionReportImpl : LogDetailImpl, IExceptionReport
{
private String _exceptionClassName = null;
private String _exceptionMessage = null;
private String _stackTrace = null;
private static readonly log4net.ILog log = LogManager.GetLogger(typeof (ExceptionReportImpl));
public String ExceptionClassName
{
get { return this._exceptionClassName; }
set { this._exceptionClassName = value; }
}
public String ExceptionMessage
{
get { return this._exceptionMessage; }
set { this._exceptionMessage = value; }
}
public String StackTrace
{
get { return this._stackTrace; }
set { this._stackTrace = value; }
}
public ExceptionReportImpl()
{
}
public ExceptionReportImpl(Exception t)
{
this._exceptionClassName = t.GetType().FullName;
this._exceptionMessage = t.Message;
//@portme
/*
System.IO.StringWriter stringWriter = new System.IO.StringWriter();
SupportClass.WriteStackTrace(t, new PrintWriter(stringWriter));
this.stackTrace = stringWriter.ToString();*/
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -