-
Notifications
You must be signed in to change notification settings - Fork 1
Four51.Four51ActionsException
jdubs edited this page Oct 21, 2016
·
1 revision
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.
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);
}
}
}