//\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
// CommonHelpers satellite library | Author: Sergei Y.Kitáev
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
using System;

namespace CommonHelpers {

//**************************************************************************************************
/// <summary>
/// </summary>
public static partial class HDBExceptions {
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

public static HDatabaseException ExpectedResultSetWasNotReceived =>
   new HDatabaseException(HLocal.TEXT(
   "Expected result-set was not recieved.",
   "Ожидаемый резалт-сет не был получен." ));

//--------------------------------------------------------------------------------------------------

public static HDatabaseException NotMoreThanOneRecordWasExpectedInRSet =>
   new HDatabaseException(HLocal.TEXT(
   "Not more than one record was expected in result-set.",
   "Ожидалось не более одной записи в резалт-сете." ));
public static HDatabaseException NotMoreThanOneRecordWasExpectedIn1stRSet =>
   new HDatabaseException(HLocal.TEXT(
   "Not more than one record was expected in 1-st result-set.",
   "Ожидалось не более одной записи в 1-м резалт-сете." ));
public static HDatabaseException NotMoreThanOneRecordWasExpectedIn2ndRSet =>
   new HDatabaseException(HLocal.TEXT(
   "Not more than one record was expected in 2-nd result-set.",
   "Ожидалось не более одной записи во 2-м резалт-сете." ));
public static HDatabaseException NotMoreThanOneRecordWasExpectedIn3rdRSet =>
   new HDatabaseException(HLocal.TEXT(
   "Not more than one record was expected in 3-rd result-set.",
   "Ожидалось не более одной записи в 3-м резалт-сете." ));
public static HDatabaseException NotMoreThanOneRecordWasExpectedIn4thRSet =>
   new HDatabaseException(HLocal.TEXT(
   "Not more than one record was expected in 4-th result-set.",
   "Ожидалось не более одной записи в 4-м резалт-сете." ));
public static HDatabaseException NotMoreThanOneRecordWasExpectedIn5thRSet =>
   new HDatabaseException(HLocal.TEXT(
   "Not more than one record was expected in 5-th result-set.",
   "Ожидалось не более одной записи в 5-м резалт-сете." ));

//--------------------------------------------------------------------------------------------------

public static HDatabaseException ExactlyOneRecordWasExpectedInRSet =>
   new HDatabaseException(HLocal.TEXT(
   "Exactly one record was expected in result-set.",
   "Ожидалась ровно одна запись в резалт-сете." ));
public static HDatabaseException ExactlyOneRecordWasExpectedIn1stRSet =>
   new HDatabaseException(HLocal.TEXT(
   "Exactly one record was expected in 1-st result-set.",
   "Ожидалась ровно одна запись в 1-м резалт-сете." ));
public static HDatabaseException ExactlyOneRecordWasExpectedIn2ndRSet =>
   new HDatabaseException(HLocal.TEXT(
   "Exactly one record was expected in 2-nd result-set.",
   "Ожидалась ровно одна запись во 2-м резалт-сете." ));
public static HDatabaseException ExactlyOneRecordWasExpectedIn3rdRSet =>
   new HDatabaseException(HLocal.TEXT(
   "Exactly one record was expected in 3-rd result-set.",
   "Ожидалась ровно одна запись в 3-м резалт-сете." ));
public static HDatabaseException ExactlyOneRecordWasExpectedIn4thRSet =>
   new HDatabaseException(HLocal.TEXT(
   "Exactly one record was expected in 4-th result-set.",
   "Ожидалась ровно одна запись в 4-м резалт-сете." ));
public static HDatabaseException ExactlyOneRecordWasExpectedIn5thRSet =>
   new HDatabaseException(HLocal.TEXT(
   "Exactly one record was expected in 5-th result-set.",
   "Ожидалась ровно одна запись в 5-м резалт-сете." ));

//--------------------------------------------------------------------------------------------------

public static HDatabaseException AtLeastOneRecordWasExpectedInRSet =>
   new HDatabaseException(HLocal.TEXT(
   "At least one record was expected in result-set.",
   "Ожидалась как минимум одна запись в резалт-сете." ));
public static HDatabaseException AtLeastOneRecordWasExpectedIn1stRSet =>
   new HDatabaseException(HLocal.TEXT(
   "At least one record was expected in 1-st result-set.",
   "Ожидалась как минимум одна запись в 1-м резалт-сете." ));
public static HDatabaseException AtLeastOneRecordWasExpectedIn2ndRSet =>
   new HDatabaseException(HLocal.TEXT(
   "At least one record was expected in 2-nd result-set.",
   "Ожидалась как минимум одна запись во 2-м резалт-сете." ));
public static HDatabaseException AtLeastOneRecordWasExpectedIn3rdRSet =>
   new HDatabaseException(HLocal.TEXT(
   "At least one record was expected in 3-rd result-set.",
   "Ожидалась как минимум одна запись в 3-м резалт-сете." ));
public static HDatabaseException AtLeastOneRecordWasExpectedIn4thRSet =>
   new HDatabaseException(HLocal.TEXT(
   "At least one record was expected in 4-th result-set.",
   "Ожидалась как минимум одна запись в 4-м резалт-сете." ));
public static HDatabaseException AtLeastOneRecordWasExpectedIn5thRSet =>
   new HDatabaseException(HLocal.TEXT(
   "At least one record was expected in 5-th result-set.",
   "Ожидалась как минимум одна запись в 5-м резалт-сете." ));

//--------------------------------------------------------------------------------------------------

public static HDatabaseException MoreThanOneRecordWereExpectedInRSet =>
   new HDatabaseException(HLocal.TEXT(
   "More than one record were expected in result-set.",
   "Ожидалось более чем одна запись в резалт-сете." ));
public static HDatabaseException MoreThanOneRecordWereExpectedIn1stRSet =>
   new HDatabaseException(HLocal.TEXT(
   "More than one record were expected in 1-st result-set.",
   "Ожидалось более чем одна запись в 1-м резалт-сете." ));
public static HDatabaseException MoreThanOneRecordWereExpectedIn2ndRSet =>
   new HDatabaseException(HLocal.TEXT(
   "More than one record were expected in 2-nd result-set.",
   "Ожидалось более чем одна запись во 2-м резалт-сете." ));
public static HDatabaseException MoreThanOneRecordWereExpectedIn3rdRSet =>
   new HDatabaseException(HLocal.TEXT(
   "More than one record were expected in 3-rd result-set.",
   "Ожидалось более чем одна запись в 3-м резалт-сете." ));
public static HDatabaseException MoreThanOneRecordWereExpectedIn4thRSet =>
   new HDatabaseException(HLocal.TEXT(
   "More than one record were expected in 4-th result-set.",
   "Ожидалось более чем одна запись в 4-м резалт-сете." ));
public static HDatabaseException MoreThanOneRecordWereExpectedIn5thRSet =>
   new HDatabaseException(HLocal.TEXT(
   "More than one record were expected in 5-th result-set.",
   "Ожидалось более чем одна запись в 5-м резалт-сете." ));

//==================================================================================================

public static HDatabaseException SecondResultSetWasExpected =>
   new HDatabaseException(HLocal.TEXT(
   "2-nd result-set was expected.",
   "Ожидался 2-й резалт-сет." ));
public static HDatabaseException ThirdResultSetWasExpected =>
   new HDatabaseException(HLocal.TEXT(
   "3-rd result-set was expected.",
   "Ожидался 3-й резалт-сет." ));
public static HDatabaseException FourthResultSetWasExpected =>
   new HDatabaseException(HLocal.TEXT(
   "4-th result-set was expected.",
   "Ожидался 4-й резалт-сет." ));
public static HDatabaseException FifthResultSetWasExpected =>
   new HDatabaseException(HLocal.TEXT(
   "5-th result-set was expected.",
   "Ожидался 5-й резалт-сет." ));

//==================================================================================================

public static HDatabaseException InconsistentQueryResult =>
   new HDatabaseException(HLocal.TEXT(
   "Database query has returned inconsistent result.",
   "Запрос к базе данных вернул противоречивый результат." ));

//==================================================================================================

static HDBExceptions() =>
   CommonHelpers_Data.Access();

//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
} // HDBExceptions
//**************************************************************************************************

} // CommonHelpers
