⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 npdlexception.cs

📁 工作流的基本资料(文档资料
💻 CS
字号:
using System;
using System.Collections;

namespace NetBpm.Workflow.Definition
{
	/// <summary> is the checked exception that is thrown when a process archive
	/// is not compliant as specified in the NetBpm Process Defintition Language (nPdl).
	/// A JpdlException tries to collect as many error messages in one parsing or
	/// validation, analogue to a compiler.  This allows a process developer to 
	/// correct more then one problem before redeploying the process archive.  
	/// Each message is optionally composed of a list of sub-messages separated 
	/// by colons ':'. The sub-messages are ordered from general to specific.
	/// </summary>
	/// <seealso href="http://www.netbpm.org/docs/npdl.html">
	/// </seealso>
	public class NpdlException : Exception
	{
		public IList ErrorMsgs
		{
			get { return errorMsgs; }
		}

		public NpdlException(String msg, Exception innerException) : base(msg, innerException)
		{
			this.errorMsgs = new ArrayList(1);
			this.errorMsgs.Add(msg);
		}

		public NpdlException(String msg) : base(msg)
		{
			this.errorMsgs = new ArrayList(1);
			this.errorMsgs.Add(msg);
		}

		public NpdlException(IList errorMsgs) : base(errorMsgs.ToString())
		{
			this.errorMsgs = errorMsgs;
		}

		private IList errorMsgs = null;
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -