Four51.Actions.Four51ActionsException

jdubs edited this page Oct 21, 2016 · 1 revision

Overview

Handles errors, allowing the user to specify specific messages for individual document actions. When specified in document actions the message will be included with the actual exception message.

Source Code

internal class Four51ActionsException : Exception
{
	private string _message;
	private string _exceptionMsg;
	
	public Four51ActionsException(string exceptionMessage, string CustomErrorMessage)
	{
		_message = CustomErrorMessage;
		_exceptionMsg = exceptionMessage;
	}
	
	public Four51ActionsException(string CustomErrorMessage)
	{
		_message = CustomErrorMessage;
	}

	public override string Message
	{
		get
		{
			return String.Format("{0}{1}", _exceptionMsg, _message != String.Empty ? Environment.NewLine + _message: String.Empty);
		}
	}
}

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.