Package ru.technoliga74
Enum Class PriceLoaderErrors
- All Implemented Interfaces:
Serializable,Comparable<PriceLoaderErrors>,Constable
Перечисление кодов ошибок приложения PriceLoader.
Каждая константа содержит код ошибки, описание и уровень логирования.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionОшибка переименования файлаОшибка чтения INI-файлаПрограмма прерванаОшибка записи в лог-файлНеверный формат числаОшибка подключения/отключения PostgreSQLОшибка загрузки драйвера PostgreSQLОшибка выполнения SQL-запросаНеопределённая ошибкаНеверный формат прайс-листаXLS-файл не найденОдин из параметров секции XLS в INI-файле равен NULL -
Method Summary
Modifier and TypeMethodDescriptionВозвращает описание ошибки.intВозвращает числовой код ошибки.Возвращает уровень логирования ошибки.toString()Возвращает строковое представление ошибки.static PriceLoaderErrorsReturns the enum constant of this class with the specified name.static PriceLoaderErrors[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ERR_PG_DRIVER_LOAD
Ошибка загрузки драйвера PostgreSQL -
ERR_PG_CONNECT
Ошибка подключения/отключения PostgreSQL -
ERR_PG_SQL
Ошибка выполнения SQL-запроса -
ERR_INI_READER
Ошибка чтения INI-файла -
ERR_LOGGER
Ошибка записи в лог-файл -
ERR_XLS_NO_FILE
XLS-файл не найден -
ERR_XLS_NULL_PARAMS
Один из параметров секции XLS в INI-файле равен NULL -
ERR_XLS_INVALID_FORMAT
Неверный формат прайс-листа -
ERR_NUMBER_FORMAT
Неверный формат числа -
ERR_INTERRUPTED
Программа прервана -
ERR_FILE_RENAME
Ошибка переименования файла -
ERR_UNDEFINED_ERROR
Неопределённая ошибка
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getErrorCode
public int getErrorCode()Возвращает числовой код ошибки.- Returns:
- код ошибки
-
getDescription
Возвращает описание ошибки.- Returns:
- описание ошибки
-
getLogLevel
Возвращает уровень логирования ошибки.- Returns:
- уровень логирования
-
toString
Возвращает строковое представление ошибки.- Overrides:
toStringin classEnum<PriceLoaderErrors>- Returns:
- строка вида "Error code: %d, Description: %s"
-