exceptionreportimpl.cs
来自「工作流的基本资料(文档资料」· CS 代码 · 共 47 行
CS
47 行
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 + =
减小字号Ctrl + -
显示快捷键?