Enum Class PrinterError

java.lang.Object
java.lang.Enum<PrinterError>
br.com.setis.printer.PrinterError
All Implemented Interfaces:
Serializable, Comparable<PrinterError>, Constable

public enum PrinterError extends Enum<PrinterError>
Enumerado com os possíveis retornos de impressão.
  • Enum Constant Details

    • NO_PAPER

      public static final PrinterError NO_PAPER
      Impressora sem papel
    • UNREADY

      public static final PrinterError UNREADY
      Impressora ainda não está pronta para executar uma impressão.
    • OVERHEAT

      public static final PrinterError OVERHEAT
      Impressora está com a temperatura acima do correto.
    • PARAM_ERROR

      public static final PrinterError PARAM_ERROR
      Erro de parâmetro na impressão.
    • ERROR

      public static final PrinterError ERROR
      Erro irrecuperável no nível do hardware da impressora.
  • Method Details

    • values

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