Enum Class PriceLoaderErrors

java.lang.Object
java.lang.Enum<PriceLoaderErrors>
ru.technoliga74.PriceLoaderErrors
All Implemented Interfaces:
Serializable, Comparable<PriceLoaderErrors>, Constable

public enum PriceLoaderErrors extends Enum<PriceLoaderErrors>
Перечисление кодов ошибок приложения PriceLoader. Каждая константа содержит код ошибки, описание и уровень логирования.
  • Enum Constant Details

    • ERR_PG_DRIVER_LOAD

      public static final PriceLoaderErrors ERR_PG_DRIVER_LOAD
      Ошибка загрузки драйвера PostgreSQL
    • ERR_PG_CONNECT

      public static final PriceLoaderErrors ERR_PG_CONNECT
      Ошибка подключения/отключения PostgreSQL
    • ERR_PG_SQL

      public static final PriceLoaderErrors ERR_PG_SQL
      Ошибка выполнения SQL-запроса
    • ERR_INI_READER

      public static final PriceLoaderErrors ERR_INI_READER
      Ошибка чтения INI-файла
    • ERR_LOGGER

      public static final PriceLoaderErrors ERR_LOGGER
      Ошибка записи в лог-файл
    • ERR_XLS_NO_FILE

      public static final PriceLoaderErrors ERR_XLS_NO_FILE
      XLS-файл не найден
    • ERR_XLS_NULL_PARAMS

      public static final PriceLoaderErrors ERR_XLS_NULL_PARAMS
      Один из параметров секции XLS в INI-файле равен NULL
    • ERR_XLS_INVALID_FORMAT

      public static final PriceLoaderErrors ERR_XLS_INVALID_FORMAT
      Неверный формат прайс-листа
    • ERR_NUMBER_FORMAT

      public static final PriceLoaderErrors ERR_NUMBER_FORMAT
      Неверный формат числа
    • ERR_INTERRUPTED

      public static final PriceLoaderErrors ERR_INTERRUPTED
      Программа прервана
    • ERR_FILE_RENAME

      public static final PriceLoaderErrors ERR_FILE_RENAME
      Ошибка переименования файла
    • ERR_UNDEFINED_ERROR

      public static final PriceLoaderErrors ERR_UNDEFINED_ERROR
      Неопределённая ошибка
  • Method Details

    • values

      public static PriceLoaderErrors[] 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

      public static PriceLoaderErrors valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getErrorCode

      public int getErrorCode()
      Возвращает числовой код ошибки.
      Returns:
      код ошибки
    • getDescription

      public String getDescription()
      Возвращает описание ошибки.
      Returns:
      описание ошибки
    • getLogLevel

      public Level getLogLevel()
      Возвращает уровень логирования ошибки.
      Returns:
      уровень логирования
    • toString

      public String toString()
      Возвращает строковое представление ошибки.
      Overrides:
      toString in class Enum<PriceLoaderErrors>
      Returns:
      строка вида "Error code: %d, Description: %s"