using System;

namespace QC.CorpTest.Libraries.QsprSchemaLibrary;

public class QsprConversionException : ApplicationException
{
	private int errorCode;

	public int ErrorCode
	{
		get
		{
			return errorCode;
		}
		set
		{
			errorCode = value;
		}
	}

	public QsprConversionException(string errorMessage, int errorCode)
		: base(errorMessage)
	{
		ErrorCode = errorCode;
	}

	public override string ToString()
	{
		return "Qspr conversion failed: " + Message + " ErrorCode: " + ErrorCode;
	}
}
