requiredfieldexception.cs

来自「工作流的基本资料(文档资料」· CS 代码 · 共 22 行

CS
22
字号
using NetBpm.Workflow.Definition;

namespace NetBpm.Workflow.Execution
{
	/// <summary> is a RuntimeException that is thrown when an actor performs an activity and no value is supplied 
	/// for one of the required fields.
	/// </summary>
	public class RequiredFieldException : ExecutionException
	{
		private IField _field = null;

		public IField Field
		{
			get { return _field; }
		}

		public RequiredFieldException(IField field) : base("field '" + field.Attribute.Name + "' was required and not submitted in the perform of state '" + field.State.Name + "'")
		{
			this._field = field;
		}
	}
}

⌨️ 快捷键说明

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