/// <summary> /// Create Data Provider exception with specific error. /// </summary> /// <param name="error">Specific Data Provider's error.</param> public DataProviderException(DataProviderErrors error) : base(error.ToString()) { this.error = error; }
/// <summary> /// Create Data Provider exception with specific error and inner exception. /// </summary> /// <param name="error">Specific Data Provider's error.</param> /// <param name="innerException">Inner exception.</param> public DataProviderException(DataProviderErrors error, Exception innerException) : base(innerException.Message, innerException) { this.error = error; }
/// <summary> /// Create Data Provider exception with specific error and error description. /// </summary> /// <param name="error">Specific Data Provider's error.</param> /// <param name="errorDescription">Error description.</param> public DataProviderException(DataProviderErrors error, string errorDescription) : base(errorDescription) { this.error = error; }